From 37084b95d3cdaa904a2d7e4df95d7723ddf2713b Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 30 Mar 2026 14:25:41 +0000 Subject: [PATCH 1/7] Configurations: 'specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb/tspconfig.yaml', API Version: 2026-01-20-preview, SDK Release Type: beta, and CommitSHA: 'f6e1fbd6268be7712bf96a516ba846f7d42e2baa' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6080418 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../Azure.ResourceManager.HorizonDb.sln | 48 + .../metadata.json | 5 + .../Azure.ResourceManager.HorizonDb.csproj | 9 + .../src/Generated/ArmHorizonDbModelFactory.cs | 399 +++++++++ ...ByResourceGroupAsyncCollectionResultOfT.cs | 81 ++ ...rsGetByResourceGroupCollectionResultOfT.cs | 80 ++ ...tBySubscriptionAsyncCollectionResultOfT.cs | 78 ++ ...ersGetBySubscriptionCollectionResultOfT.cs | 77 ++ ...wallRulesGetAllAsyncCollectionResultOfT.cs | 87 ++ ...bFirewallRulesGetAllCollectionResultOfT.cs | 86 ++ ...ByResourceGroupAsyncCollectionResultOfT.cs | 81 ++ ...psGetByResourceGroupCollectionResultOfT.cs | 80 ++ ...tBySubscriptionAsyncCollectionResultOfT.cs | 78 ++ ...upsGetBySubscriptionCollectionResultOfT.cs | 77 ++ ...sGetConnectionsAsyncCollectionResultOfT.cs | 84 ++ ...GroupsGetConnectionsCollectionResultOfT.cs | 83 ++ ...oupsGetVersionsAsyncCollectionResultOfT.cs | 87 ++ ...terGroupsGetVersionsCollectionResultOfT.cs | 86 ++ ...onDbPoolsGetAllAsyncCollectionResultOfT.cs | 84 ++ ...HorizonDbPoolsGetAllCollectionResultOfT.cs | 83 ++ ...nnectionsGetAllAsyncCollectionResultOfT.cs | 84 ++ ...intConnectionsGetAllCollectionResultOfT.cs | 83 ++ ...ResourcesGetAllAsyncCollectionResultOfT.cs | 84 ++ ...eLinkResourcesGetAllCollectionResultOfT.cs | 83 ++ ...bReplicasGetAllAsyncCollectionResultOfT.cs | 87 ++ ...izonDbReplicasGetAllCollectionResultOfT.cs | 86 ++ .../Extensions/HorizonDbExtensions.cs | 427 +++++++++ .../Extensions/MockableHorizonDbArmClient.cs | 92 ++ .../MockableHorizonDbResourceGroupResource.cs | 389 +++++++++ .../MockableHorizonDbSubscriptionResource.cs | 159 ++++ .../Generated/HorizonDbClusterCollection.cs | 580 ++++++++++++ .../HorizonDbClusterData.Serialization.cs | 229 +++++ .../src/Generated/HorizonDbClusterData.cs | 46 + .../HorizonDbClusterResource.Serialization.cs | 39 + .../src/Generated/HorizonDbClusterResource.cs | 781 +++++++++++++++++ .../HorizonDbFirewallRuleCollection.cs | 591 +++++++++++++ ...HorizonDbFirewallRuleData.Serialization.cs | 194 +++++ .../Generated/HorizonDbFirewallRuleData.cs | 43 + ...zonDbFirewallRuleResource.Serialization.cs | 39 + .../HorizonDbFirewallRuleResource.cs | 407 +++++++++ .../HorizonDbParameterGroupCollection.cs | 580 ++++++++++++ ...rizonDbParameterGroupData.Serialization.cs | 229 +++++ .../Generated/HorizonDbParameterGroupData.cs | 46 + ...nDbParameterGroupResource.Serialization.cs | 39 + .../HorizonDbParameterGroupResource.cs | 824 ++++++++++++++++++ .../src/Generated/HorizonDbPoolCollection.cs | 463 ++++++++++ .../HorizonDbPoolData.Serialization.cs | 223 +++++ .../src/Generated/HorizonDbPoolData.cs | 49 ++ .../HorizonDbPoolResource.Serialization.cs | 39 + .../src/Generated/HorizonDbPoolResource.cs | 256 ++++++ ...izonDbPrivateLinkResource.Serialization.cs | 39 + .../Generated/HorizonDbPrivateLinkResource.cs | 190 ++++ .../HorizonDbPrivateLinkResourceCollection.cs | 463 ++++++++++ ...DbPrivateLinkResourceData.Serialization.cs | 184 ++++ .../HorizonDbPrivateLinkResourceData.cs | 43 + .../Generated/HorizonDbReplicaCollection.cs | 591 +++++++++++++ .../HorizonDbReplicaData.Serialization.cs | 194 +++++ .../src/Generated/HorizonDbReplicaData.cs | 43 + .../HorizonDbReplicaResource.Serialization.cs | 39 + .../src/Generated/HorizonDbReplicaResource.cs | 408 +++++++++ .../src/Generated/Internal/Argument.cs | 113 +++ .../Internal/AsyncPageableWrapper.cs | 48 + .../Internal/ChangeTrackingDictionary.cs | 189 ++++ .../Generated/Internal/ChangeTrackingList.cs | 168 ++++ .../Internal/ClientPipelineExtensions.cs | 72 ++ .../Internal/CodeGenMemberAttribute.cs | 20 + .../Internal/CodeGenSerializationAttribute.cs | 48 + .../Internal/CodeGenSuppressAttribute.cs | 29 + .../Internal/CodeGenTypeAttribute.cs | 24 + .../src/Generated/Internal/ErrorResult.cs | 32 + .../Internal/ModelSerializationExtensions.cs | 268 ++++++ .../src/Generated/Internal/Optional.cs | 51 ++ .../src/Generated/Internal/PageableWrapper.cs | 47 + .../RawRequestUriBuilderExtensions.cs | 60 ++ .../Internal/RequestContextExtensions.cs | 26 + .../Generated/Internal/SerializationFormat.cs | 49 ++ .../src/Generated/Internal/TypeFormatters.cs | 181 ++++ .../HorizonDbArmOperation.cs | 106 +++ .../HorizonDbArmOperationOfT.cs | 113 +++ .../HorizonDbClusterOperationSource.cs | 49 ++ .../HorizonDbFirewallRuleOperationSource.cs | 49 ++ .../HorizonDbParameterGroupOperationSource.cs | 49 ++ ...rivateEndpointConnectionOperationSource.cs | 45 + .../HorizonDbReplicaOperationSource.cs | 49 ++ .../AzureResourceManagerHorizonDbContext.cs | 68 ++ .../src/Generated/Models/CreateModeCluster.cs | 76 ++ .../src/Generated/Models/CreateModePool.cs | 71 ++ ...orizonDbClusterListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbClusterListResult.cs | 45 + ...GroupConnectionProperties.Serialization.cs | 172 ++++ ...usterParameterGroupConnectionProperties.cs | 47 + .../HorizonDbClusterPatch.Serialization.cs | 194 +++++ .../Generated/Models/HorizonDbClusterPatch.cs | 43 + ...orizonDbClusterProperties.Serialization.cs | 378 ++++++++ .../Models/HorizonDbClusterProperties.cs | 132 +++ ...rPropertiesForPatchUpdate.Serialization.cs | 171 ++++ ...orizonDbClusterPropertiesForPatchUpdate.cs | 46 + ...nDbFirewallRuleListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbFirewallRuleListResult.cs | 45 + ...nDbFirewallRuleProperties.Serialization.cs | 177 ++++ .../Models/HorizonDbFirewallRuleProperties.cs | 60 ++ ...GroupConnectionProperties.Serialization.cs | 168 ++++ ...zonDbParameterGroupConnectionProperties.cs | 47 + ...ctionPropertiesListResult.Serialization.cs | 176 ++++ ...eterGroupConnectionPropertiesListResult.cs | 44 + ...bParameterGroupListResult.Serialization.cs | 176 ++++ .../HorizonDbParameterGroupListResult.cs | 45 + ...izonDbParameterGroupPatch.Serialization.cs | 194 +++++ .../Models/HorizonDbParameterGroupPatch.cs | 43 + ...bParameterGroupProperties.Serialization.cs | 233 +++++ .../HorizonDbParameterGroupProperties.cs | 63 ++ ...pPropertiesForPatchUpdate.Serialization.cs | 181 ++++ ...bParameterGroupPropertiesForPatchUpdate.cs | 48 + .../HorizonDbPoolListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbPoolListResult.cs | 45 + .../HorizonDbPoolProperties.Serialization.cs | 224 +++++ .../Models/HorizonDbPoolProperties.cs | 62 ++ ...PrivateEndpointConnection.Serialization.cs | 184 ++++ .../HorizonDbPrivateEndpointConnection.cs | 42 + ...vateEndpointConnectionProvisioningState.cs | 81 ++ ...bPrivateEndpointServiceConnectionStatus.cs | 76 ++ ...ateLinkResourceListResult.Serialization.cs | 176 ++++ .../HorizonDbPrivateLinkResourceListResult.cs | 45 + ...ateLinkResourceProperties.Serialization.cs | 215 +++++ .../HorizonDbPrivateLinkResourceProperties.cs | 49 ++ ...inkServiceConnectionState.Serialization.cs | 167 ++++ ...izonDbPrivateLinkServiceConnectionState.cs | 46 + ...orizonDbReplicaListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbReplicaListResult.cs | 45 + .../HorizonDbReplicaPatch.Serialization.cs | 156 ++++ .../Generated/Models/HorizonDbReplicaPatch.cs | 53 ++ ...orizonDbReplicaProperties.Serialization.cs | 203 +++++ .../Models/HorizonDbReplicaProperties.cs | 56 ++ ...aPropertiesForPatchUpdate.Serialization.cs | 145 +++ ...orizonDbReplicaPropertiesForPatchUpdate.cs | 36 + .../Generated/Models/Network.Serialization.cs | 145 +++ .../src/Generated/Models/Network.cs | 36 + ...rtiesUpdateableProperties.Serialization.cs | 160 ++++ .../OptionalPropertiesUpdateableProperties.cs | 51 ++ .../ParameterProperties.Serialization.cs | 251 ++++++ .../Generated/Models/ParameterProperties.cs | 76 ++ .../Models/PrivateEndpoint.Serialization.cs | 146 ++++ .../src/Generated/Models/PrivateEndpoint.cs | 37 + ...pointConnectionProperties.Serialization.cs | 210 +++++ .../PrivateEndpointConnectionProperties.cs | 65 ++ ...nectionResourceListResult.Serialization.cs | 176 ++++ ...ateEndpointConnectionResourceListResult.cs | 45 + ...eEndpointConnectionUpdate.Serialization.cs | 156 ++++ .../Models/PrivateEndpointConnectionUpdate.cs | 36 + .../src/Generated/Models/ProvisioningState.cs | 86 ++ .../Models/PublicNetworkAccessState.cs | 71 ++ .../src/Generated/Models/ReplicaRole.cs | 71 ++ .../src/Generated/Models/State.cs | 101 +++ .../Generated/Models/ZonePlacementPolicy.cs | 71 ++ ...ndpointConnectionResource.Serialization.cs | 39 + .../PrivateEndpointConnectionResource.cs | 190 ++++ ...ateEndpointConnectionResourceCollection.cs | 463 ++++++++++ ...intConnectionResourceData.Serialization.cs | 184 ++++ .../PrivateEndpointConnectionResourceData.cs | 43 + .../src/Generated/ProviderConstants.cs | 17 + .../HorizonDbClustersRestOperations.cs | 221 +++++ .../HorizonDbFirewallRulesRestOperations.cs | 171 ++++ .../HorizonDbParameterGroupsRestOperations.cs | 317 +++++++ .../HorizonDbPoolsRestOperations.cs | 114 +++ ...rivateEndpointConnectionsRestOperations.cs | 159 ++++ ...zonDbPrivateLinkResourcesRestOperations.cs | 114 +++ .../HorizonDbReplicasRestOperations.cs | 199 +++++ .../tsp-location.yaml | 6 + 168 files changed, 23303 insertions(+) create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/metadata.json create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ArmHorizonDbModelFactory.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/HorizonDbExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbArmClient.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Argument.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/AsyncPageableWrapper.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingDictionary.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingList.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ClientPipelineExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenMemberAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSerializationAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSuppressAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenTypeAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ErrorResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ModelSerializationExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Optional.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/PageableWrapper.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RawRequestUriBuilderExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RequestContextExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/SerializationFormat.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/TypeFormatters.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModeCluster.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModePool.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ProvisioningState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PublicNetworkAccessState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ReplicaRole.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/State.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ZonePlacementPolicy.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ProviderConstants.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/tsp-location.yaml 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..e96c708d7488 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln @@ -0,0 +1,48 @@ +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 +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} + EndGlobalSection +EndGlobal diff --git a/sdk/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..394d90253feb --- /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), 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..3521d2091a12 --- /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), 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 . + /// An object representing collection of HorizonDbPools and their operations over a HorizonDbPoolResource. + public virtual HorizonDbPoolCollection GetHorizonDbPools() + { + return GetCachedClient(client => new HorizonDbPoolCollection(client, Id)); + } + + /// Gets information about a HorizonDb pool. + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbPoolAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + return await GetHorizonDbPools().GetAsync(poolName, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about a HorizonDb pool. + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbPool(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + return GetHorizonDbPools().Get(poolName, cancellationToken); + } + + /// Gets a collection of PrivateEndpointConnectionResources in the . + /// An object representing collection of PrivateEndpointConnectionResources and their operations over a PrivateEndpointConnectionResource. + public virtual PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() + { + return GetCachedClient(client => new PrivateEndpointConnectionResourceCollection(client, Id)); + } + + /// Gets a private endpoint connection. + /// 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. + [ForwardsClientCalls] + public virtual async Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + return await GetPrivateEndpointConnectionResources().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + } + + /// Gets a private endpoint connection. + /// 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. + [ForwardsClientCalls] + public virtual Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + return GetPrivateEndpointConnectionResources().Get(privateEndpointConnectionName, cancellationToken); + } + + /// Gets a collection of HorizonDbPrivateLinkResources in the . + /// An object representing collection of HorizonDbPrivateLinkResources and their operations over a HorizonDbPrivateLinkResource. + public virtual HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() + { + return GetCachedClient(client => new HorizonDbPrivateLinkResourceCollection(client, Id)); + } + + /// Gets a private link resource. + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + return await GetHorizonDbPrivateLinkResources().GetAsync(groupName, cancellationToken).ConfigureAwait(false); + } + + /// Gets a private link resource. + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbPrivateLinkResource(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + return GetHorizonDbPrivateLinkResources().Get(groupName, cancellationToken); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleCollection.cs new file mode 100644 index 000000000000..1bf2e1a826d8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleCollection.cs @@ -0,0 +1,591 @@ +// 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; + +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 GetHorizonDbFirewallRules method from an instance of . + /// + public partial class HorizonDbFirewallRuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbFirewallRulesClientDiagnostics; + private readonly HorizonDbFirewallRules _horizonDbFirewallRulesRestClient; + + /// Initializes a new instance of HorizonDbFirewallRuleCollection for mocking. + protected HorizonDbFirewallRuleCollection() + { + } + + /// 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 HorizonDbFirewallRuleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbFirewallRuleResource.ResourceType, out string horizonDbFirewallRuleApiVersion); + _horizonDbFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbFirewallRuleResource.ResourceType.Namespace, Diagnostics); + _horizonDbFirewallRulesRestClient = new HorizonDbFirewallRules(_horizonDbFirewallRulesClientDiagnostics, Pipeline, Endpoint, horizonDbFirewallRuleApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbPoolResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbPoolResource.ResourceType), id); + } + } + + /// + /// Creates a new HorizonDb firewall rule or updates an existing rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 firewall rule. + /// 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 firewallRuleName, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + 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 firewall rule or updates an existing rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 firewall rule. + /// 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 firewallRuleName, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + 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 firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb firewall rules in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_List. + /// + /// + /// 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 HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT( + _horizonDbFirewallRulesRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbFirewallRuleResource(Client, data)); + } + + /// + /// Lists all HorizonDb firewall rules in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_List. + /// + /// + /// 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 HorizonDbFirewallRulesGetAllCollectionResultOfT( + _horizonDbFirewallRulesRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbFirewallRuleResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)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}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)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}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(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}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(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/HorizonDbFirewallRuleData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.Serialization.cs new file mode 100644 index 000000000000..59e65f3116e2 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.Serialization.cs @@ -0,0 +1,194 @@ +// 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 firewall rule. + public partial class HorizonDbFirewallRuleData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbFirewallRuleData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbFirewallRuleData)} 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(HorizonDbFirewallRuleData)} 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. + HorizonDbFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbFirewallRuleData)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(HorizonDbFirewallRuleData horizonDbFirewallRuleData) + { + if (horizonDbFirewallRuleData == null) + { + return null; + } + return RequestContent.Create(horizonDbFirewallRuleData, ModelSerializationExtensions.WireOptions); + } + + /// The to deserialize the from. + internal static HorizonDbFirewallRuleData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbFirewallRuleData(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(HorizonDbFirewallRuleData)} 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. + HorizonDbFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbFirewallRuleData)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(HorizonDbFirewallRuleData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbFirewallRuleData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbFirewallRuleData DeserializeHorizonDbFirewallRuleData(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(); + HorizonDbFirewallRuleProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbFirewallRuleProperties.DeserializeHorizonDbFirewallRuleProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbFirewallRuleData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.cs new file mode 100644 index 000000000000..20fd6aef89f5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.cs @@ -0,0 +1,43 @@ +// 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 firewall rule. + public partial class HorizonDbFirewallRuleData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbFirewallRuleData() + { + } + + /// 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. + /// The resource-specific properties for this resource. + internal HorizonDbFirewallRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbFirewallRuleProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbFirewallRuleProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..d2f75728608c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.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 HorizonDbFirewallRuleResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbFirewallRuleData(); + + /// 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. + HorizonDbFirewallRuleData 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. + HorizonDbFirewallRuleData 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/HorizonDbFirewallRuleResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.cs new file mode 100644 index 000000000000..c8e951d539c7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.cs @@ -0,0 +1,407 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + /// A class representing a HorizonDbFirewallRule 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 GetHorizonDbFirewallRules method. + /// + public partial class HorizonDbFirewallRuleResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbFirewallRulesClientDiagnostics; + private readonly HorizonDbFirewallRules _horizonDbFirewallRulesRestClient; + private readonly HorizonDbFirewallRuleData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools/firewallRules"; + + /// Initializes a new instance of HorizonDbFirewallRuleResource for mocking. + protected HorizonDbFirewallRuleResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbFirewallRuleResource(ArmClient client, HorizonDbFirewallRuleData 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 HorizonDbFirewallRuleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbFirewallRuleApiVersion); + _horizonDbFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); + _horizonDbFirewallRulesRestClient = new HorizonDbFirewallRules(_horizonDbFirewallRulesClientDiagnostics, Pipeline, Endpoint, horizonDbFirewallRuleApiVersion ?? "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 HorizonDbFirewallRuleData 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. + /// The poolName. + /// The firewallRuleName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}"; + 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), id); + } + } + + /// + /// Gets information about a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbFirewallRulesClientDiagnostics, 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 firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbFirewallRulesClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletionResponse(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a HorizonDbFirewallRule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_CreateOrUpdate. + /// + /// + /// 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. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + 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; + } + } + + /// + /// Update a HorizonDbFirewallRule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_CreateOrUpdate. + /// + /// + /// 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. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletion(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupCollection.cs new file mode 100644 index 000000000000..6abbac43dd89 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupCollection.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 GetHorizonDbParameterGroups method from an instance of . + /// + public partial class HorizonDbParameterGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics; + private readonly HorizonDbParameterGroups _horizonDbParameterGroupsRestClient; + + /// Initializes a new instance of HorizonDbParameterGroupCollection for mocking. + protected HorizonDbParameterGroupCollection() + { + } + + /// 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 HorizonDbParameterGroupCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbParameterGroupResource.ResourceType, out string horizonDbParameterGroupApiVersion); + _horizonDbParameterGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbParameterGroupResource.ResourceType.Namespace, Diagnostics); + _horizonDbParameterGroupsRestClient = new HorizonDbParameterGroups(_horizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, horizonDbParameterGroupApiVersion ?? "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), id); + } + } + + /// + /// Creates a new HorizonDb parameter group or updates an existing parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 parameter group. + /// 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 parameterGroupName, HorizonDbParameterGroupData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, HorizonDbParameterGroupData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 parameter group or updates an existing parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 parameter group. + /// 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 parameterGroupName, HorizonDbParameterGroupData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, HorizonDbParameterGroupData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 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. + public virtual async Task> GetAsync(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// 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. + public virtual Response Get(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb parameter groups in a resource group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Lists all HorizonDb parameter groups in a resource group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// 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. + public virtual async Task> ExistsAsync(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)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/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. + public virtual Response Exists(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)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/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. + public virtual async Task> GetIfExistsAsync(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(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/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. + public virtual NullableResponse GetIfExists(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(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/HorizonDbParameterGroupData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.Serialization.cs new file mode 100644 index 000000000000..ea71b685c5d6 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.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 parameter group. + public partial class HorizonDbParameterGroupData : TrackedResourceData, IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbParameterGroupData() + { + } + + /// 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 DeserializeHorizonDbParameterGroupData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupData)} 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(HorizonDbParameterGroupData)} 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. + HorizonDbParameterGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbParameterGroupData)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(HorizonDbParameterGroupData horizonDbParameterGroupData) + { + if (horizonDbParameterGroupData == null) + { + return null; + } + return RequestContent.Create(horizonDbParameterGroupData, ModelSerializationExtensions.WireOptions); + } + + /// The to deserialize the from. + internal static HorizonDbParameterGroupData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbParameterGroupData(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(HorizonDbParameterGroupData)} 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. + HorizonDbParameterGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbParameterGroupData)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(HorizonDbParameterGroupData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupData DeserializeHorizonDbParameterGroupData(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; + HorizonDbParameterGroupProperties 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 = HorizonDbParameterGroupProperties.DeserializeHorizonDbParameterGroupProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + tags ?? new ChangeTrackingDictionary(), + location, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.cs new file mode 100644 index 000000000000..05888670fbaf --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.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 parameter group. + public partial class HorizonDbParameterGroupData : 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 HorizonDbParameterGroupData(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 HorizonDbParameterGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, HorizonDbParameterGroupProperties properties) : base(id, name, resourceType, systemData, tags, location) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbParameterGroupProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.Serialization.cs new file mode 100644 index 000000000000..5729577ef169 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.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 HorizonDbParameterGroupResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbParameterGroupData(); + + /// 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. + HorizonDbParameterGroupData 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. + HorizonDbParameterGroupData 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/HorizonDbParameterGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.cs new file mode 100644 index 000000000000..6d9990e2487a --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.cs @@ -0,0 +1,824 @@ +// 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 HorizonDbParameterGroup 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 GetHorizonDbParameterGroups method. + /// + public partial class HorizonDbParameterGroupResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics; + private readonly HorizonDbParameterGroups _horizonDbParameterGroupsRestClient; + private readonly HorizonDbParameterGroupData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/parameterGroups"; + + /// Initializes a new instance of HorizonDbParameterGroupResource for mocking. + protected HorizonDbParameterGroupResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbParameterGroupResource(ArmClient client, HorizonDbParameterGroupData 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 HorizonDbParameterGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbParameterGroupApiVersion); + _horizonDbParameterGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); + _horizonDbParameterGroupsRestClient = new HorizonDbParameterGroups(_horizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, horizonDbParameterGroupApiVersion ?? "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 HorizonDbParameterGroupData 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 parameterGroupName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}"; + 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), 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. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// 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. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates an existing HorizonDb parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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, HorizonDbParameterGroupPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbParameterGroupPatch.ToRequestContent(patch), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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, HorizonDbParameterGroupPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbParameterGroupPatch.ToRequestContent(patch), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbParameterGroupsClientDiagnostics, 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 parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbParameterGroupsClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletionResponse(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists parameter groups filtered by version number. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListVersions. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The version number to filter by. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetVersionsAsync(int? version = default, CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new AsyncPageableWrapper(new HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT( + _horizonDbParameterGroupsRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Name, + version, + context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Lists parameter groups filtered by version number. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListVersions. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The version number to filter by. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetVersions(int? version = default, CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new PageableWrapper(new HorizonDbParameterGroupsGetVersionsCollectionResultOfT( + _horizonDbParameterGroupsRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Name, + version, + context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Gets all connections to a parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListConnections. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetConnectionsAsync(CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + } + + /// + /// Gets all connections to a parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListConnections. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetConnections(CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new HorizonDbParameterGroupsGetConnectionsCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + } + + /// 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolCollection.cs new file mode 100644 index 000000000000..634a2964d180 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolCollection.cs @@ -0,0 +1,463 @@ +// 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; + +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 GetHorizonDbPools method from an instance of . + /// + public partial class HorizonDbPoolCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbPoolsClientDiagnostics; + private readonly HorizonDbPools _horizonDbPoolsRestClient; + + /// Initializes a new instance of HorizonDbPoolCollection for mocking. + protected HorizonDbPoolCollection() + { + } + + /// 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 HorizonDbPoolCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbPoolResource.ResourceType, out string horizonDbPoolApiVersion); + _horizonDbPoolsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbPoolResource.ResourceType.Namespace, Diagnostics); + _horizonDbPoolsRestClient = new HorizonDbPools(_horizonDbPoolsClientDiagnostics, Pipeline, Endpoint, horizonDbPoolApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbClusterResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb pools in a cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools. + /// + /// + /// Operation Id. + /// HorizonDbPools_List. + /// + /// + /// 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 HorizonDbPoolsGetAllAsyncCollectionResultOfT(_horizonDbPoolsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPoolResource(Client, data)); + } + + /// + /// Lists all HorizonDb pools in a cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools. + /// + /// + /// Operation Id. + /// HorizonDbPools_List. + /// + /// + /// 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 HorizonDbPoolsGetAllCollectionResultOfT(_horizonDbPoolsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPoolResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)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}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)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}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(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}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(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/HorizonDbPoolData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.Serialization.cs new file mode 100644 index 000000000000..e930d1d7bab9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.Serialization.cs @@ -0,0 +1,223 @@ +// 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 pool. + public partial class HorizonDbPoolData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbPoolData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPoolData)} 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(HorizonDbPoolData)} 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. + HorizonDbPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPoolData)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPoolData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPoolData(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(HorizonDbPoolData)} does not support writing '{format}' format."); + } + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPoolData)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(HorizonDbPoolData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPoolData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPoolData DeserializeHorizonDbPoolData(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(); + HorizonDbPoolProperties properties = default; + IDictionary tags = 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbPoolProperties.DeserializeHorizonDbPoolProperties(prop.Value, options); + 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 (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPoolData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties, + tags ?? new ChangeTrackingDictionary()); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.cs new file mode 100644 index 000000000000..05778059e227 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.cs @@ -0,0 +1,49 @@ +// 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 pool. + public partial class HorizonDbPoolData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPoolData() + { + Tags = new ChangeTrackingDictionary(); + } + + /// 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. + /// The resource-specific properties for this resource. + /// Resource tags. + internal HorizonDbPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPoolProperties properties, IDictionary tags) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + Tags = tags; + } + + /// The resource-specific properties for this resource. + public HorizonDbPoolProperties Properties { get; } + + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.Serialization.cs new file mode 100644 index 000000000000..c94cc9b38798 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.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 HorizonDbPoolResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPoolData(); + + /// 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. + HorizonDbPoolData 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. + HorizonDbPoolData 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/HorizonDbPoolResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.cs new file mode 100644 index 000000000000..ba23b6bb97af --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.cs @@ -0,0 +1,256 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + /// A class representing a HorizonDbPool 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 GetHorizonDbPools method. + /// + public partial class HorizonDbPoolResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbPoolsClientDiagnostics; + private readonly HorizonDbPools _horizonDbPoolsRestClient; + private readonly HorizonDbPoolData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools"; + + /// Initializes a new instance of HorizonDbPoolResource for mocking. + protected HorizonDbPoolResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbPoolResource(ArmClient client, HorizonDbPoolData 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 HorizonDbPoolResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbPoolApiVersion); + _horizonDbPoolsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); + _horizonDbPoolsRestClient = new HorizonDbPools(_horizonDbPoolsClientDiagnostics, Pipeline, Endpoint, horizonDbPoolApiVersion ?? "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 HorizonDbPoolData 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. + /// The poolName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}"; + 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), id); + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_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 = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a collection of HorizonDbReplicas in the . + /// An object representing collection of HorizonDbReplicas and their operations over a HorizonDbReplicaResource. + public virtual HorizonDbReplicaCollection GetHorizonDbReplicas() + { + return GetCachedClient(client => new HorizonDbReplicaCollection(client, Id)); + } + + /// Gets information about a HorizonDb replica. + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbReplicaAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + return await GetHorizonDbReplicas().GetAsync(replicaName, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about a HorizonDb replica. + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbReplica(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + return GetHorizonDbReplicas().Get(replicaName, cancellationToken); + } + + /// Gets a collection of HorizonDbFirewallRules in the . + /// An object representing collection of HorizonDbFirewallRules and their operations over a HorizonDbFirewallRuleResource. + public virtual HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() + { + return GetCachedClient(client => new HorizonDbFirewallRuleCollection(client, Id)); + } + + /// Gets information about a HorizonDb firewall rule. + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + return await GetHorizonDbFirewallRules().GetAsync(firewallRuleName, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about a HorizonDb firewall rule. + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbFirewallRule(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + return GetHorizonDbFirewallRules().Get(firewallRuleName, cancellationToken); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..58bc94d2ea50 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.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 HorizonDbPrivateLinkResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPrivateLinkResourceData(); + + /// 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. + HorizonDbPrivateLinkResourceData 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. + HorizonDbPrivateLinkResourceData 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/HorizonDbPrivateLinkResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.cs new file mode 100644 index 000000000000..ccf0b75cc054 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + /// A class representing a HorizonDbPrivateLinkResource 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 GetHorizonDbPrivateLinkResources method. + /// + public partial class HorizonDbPrivateLinkResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbPrivateLinkResourcesClientDiagnostics; + private readonly HorizonDbPrivateLinkResources _horizonDbPrivateLinkResourcesRestClient; + private readonly HorizonDbPrivateLinkResourceData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/privateLinkResources"; + + /// Initializes a new instance of HorizonDbPrivateLinkResource for mocking. + protected HorizonDbPrivateLinkResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbPrivateLinkResource(ArmClient client, HorizonDbPrivateLinkResourceData 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 HorizonDbPrivateLinkResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbPrivateLinkResourceApiVersion); + _horizonDbPrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); + _horizonDbPrivateLinkResourcesRestClient = new HorizonDbPrivateLinkResources(_horizonDbPrivateLinkResourcesClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateLinkResourceApiVersion ?? "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 HorizonDbPrivateLinkResourceData 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. + /// The groupName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}"; + 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), id); + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_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 = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceCollection.cs new file mode 100644 index 000000000000..c3abd5a379c2 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceCollection.cs @@ -0,0 +1,463 @@ +// 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; + +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 GetHorizonDbPrivateLinkResources method from an instance of . + /// + public partial class HorizonDbPrivateLinkResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbPrivateLinkResourcesClientDiagnostics; + private readonly HorizonDbPrivateLinkResources _horizonDbPrivateLinkResourcesRestClient; + + /// Initializes a new instance of HorizonDbPrivateLinkResourceCollection for mocking. + protected HorizonDbPrivateLinkResourceCollection() + { + } + + /// 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 HorizonDbPrivateLinkResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbPrivateLinkResource.ResourceType, out string horizonDbPrivateLinkResourceApiVersion); + _horizonDbPrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbPrivateLinkResource.ResourceType.Namespace, Diagnostics); + _horizonDbPrivateLinkResourcesRestClient = new HorizonDbPrivateLinkResources(_horizonDbPrivateLinkResourcesClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateLinkResourceApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbClusterResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists private link resources in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_List. + /// + /// + /// 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 HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT(_horizonDbPrivateLinkResourcesRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateLinkResource(Client, data)); + } + + /// + /// Lists private link resources in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_List. + /// + /// + /// 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 HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT(_horizonDbPrivateLinkResourcesRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateLinkResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)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}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)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}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(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}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(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/HorizonDbPrivateLinkResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs new file mode 100644 index 000000000000..ee99d4462a65 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs @@ -0,0 +1,184 @@ +// 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 private link resource. + public partial class HorizonDbPrivateLinkResourceData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbPrivateLinkResourceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceData)} 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(HorizonDbPrivateLinkResourceData)} 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. + HorizonDbPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPrivateLinkResourceData)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPrivateLinkResourceData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPrivateLinkResourceData(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(HorizonDbPrivateLinkResourceData)} 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. + HorizonDbPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPrivateLinkResourceData)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(HorizonDbPrivateLinkResourceData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateLinkResourceData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateLinkResourceData DeserializeHorizonDbPrivateLinkResourceData(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(); + HorizonDbPrivateLinkResourceProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbPrivateLinkResourceProperties.DeserializeHorizonDbPrivateLinkResourceProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateLinkResourceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.cs new file mode 100644 index 000000000000..c5c5614c183c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.cs @@ -0,0 +1,43 @@ +// 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 private link resource. + public partial class HorizonDbPrivateLinkResourceData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPrivateLinkResourceData() + { + } + + /// 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. + /// The resource-specific properties for this resource. + internal HorizonDbPrivateLinkResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPrivateLinkResourceProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbPrivateLinkResourceProperties Properties { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaCollection.cs new file mode 100644 index 000000000000..06c878113312 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaCollection.cs @@ -0,0 +1,591 @@ +// 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; + +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 GetHorizonDbReplicas method from an instance of . + /// + public partial class HorizonDbReplicaCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbReplicasClientDiagnostics; + private readonly HorizonDbReplicas _horizonDbReplicasRestClient; + + /// Initializes a new instance of HorizonDbReplicaCollection for mocking. + protected HorizonDbReplicaCollection() + { + } + + /// 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 HorizonDbReplicaCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbReplicaResource.ResourceType, out string horizonDbReplicaApiVersion); + _horizonDbReplicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbReplicaResource.ResourceType.Namespace, Diagnostics); + _horizonDbReplicasRestClient = new HorizonDbReplicas(_horizonDbReplicasClientDiagnostics, Pipeline, Endpoint, horizonDbReplicaApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbPoolResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbPoolResource.ResourceType), id); + } + } + + /// + /// Creates a new HorizonDb replica or updates an existing replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 replica. + /// 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 replicaName, HorizonDbReplicaData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, HorizonDbReplicaData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica or updates an existing replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 replica. + /// 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 replicaName, HorizonDbReplicaData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, HorizonDbReplicaData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb replicas in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_List. + /// + /// + /// 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 HorizonDbReplicasGetAllAsyncCollectionResultOfT( + _horizonDbReplicasRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbReplicaResource(Client, data)); + } + + /// + /// Lists all HorizonDb replicas in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_List. + /// + /// + /// 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 HorizonDbReplicasGetAllCollectionResultOfT( + _horizonDbReplicasRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbReplicaResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)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}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)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}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(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}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(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/HorizonDbReplicaData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.Serialization.cs new file mode 100644 index 000000000000..d7495238bb48 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.Serialization.cs @@ -0,0 +1,194 @@ +// 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 replica. + public partial class HorizonDbReplicaData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbReplicaData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaData)} 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(HorizonDbReplicaData)} 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. + HorizonDbReplicaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbReplicaData)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(HorizonDbReplicaData horizonDbReplicaData) + { + if (horizonDbReplicaData == null) + { + return null; + } + return RequestContent.Create(horizonDbReplicaData, ModelSerializationExtensions.WireOptions); + } + + /// The to deserialize the from. + internal static HorizonDbReplicaData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbReplicaData(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(HorizonDbReplicaData)} 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. + HorizonDbReplicaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbReplicaData)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(HorizonDbReplicaData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaData DeserializeHorizonDbReplicaData(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(); + HorizonDbReplicaProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbReplicaProperties.DeserializeHorizonDbReplicaProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.cs new file mode 100644 index 000000000000..dbd4b0b14be7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.cs @@ -0,0 +1,43 @@ +// 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 replica. + public partial class HorizonDbReplicaData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaData() + { + } + + /// 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. + /// The resource-specific properties for this resource. + internal HorizonDbReplicaData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbReplicaProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbReplicaProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.Serialization.cs new file mode 100644 index 000000000000..a1b5bb957850 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.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 HorizonDbReplicaResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbReplicaData(); + + /// 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. + HorizonDbReplicaData 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. + HorizonDbReplicaData 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/HorizonDbReplicaResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.cs new file mode 100644 index 000000000000..61716a949548 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.cs @@ -0,0 +1,408 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +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; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + /// A class representing a HorizonDbReplica 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 GetHorizonDbReplicas method. + /// + public partial class HorizonDbReplicaResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbReplicasClientDiagnostics; + private readonly HorizonDbReplicas _horizonDbReplicasRestClient; + private readonly HorizonDbReplicaData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools/replicas"; + + /// Initializes a new instance of HorizonDbReplicaResource for mocking. + protected HorizonDbReplicaResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbReplicaResource(ArmClient client, HorizonDbReplicaData 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 HorizonDbReplicaResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbReplicaApiVersion); + _horizonDbReplicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); + _horizonDbReplicasRestClient = new HorizonDbReplicas(_horizonDbReplicasClientDiagnostics, Pipeline, Endpoint, horizonDbReplicaApiVersion ?? "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 HorizonDbReplicaData 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. + /// The poolName. + /// The replicaName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}"; + 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), id); + } + } + + /// + /// Gets information about a HorizonDb replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates an existing HorizonDb replica (e.g., role). + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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, HorizonDbReplicaPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbReplicaPatch.ToRequestContent(patch), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica (e.g., role). + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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, HorizonDbReplicaPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbReplicaPatch.ToRequestContent(patch), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbReplicasClientDiagnostics, 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 replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbReplicasClientDiagnostics, 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/Internal/Argument.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Argument.cs new file mode 100644 index 000000000000..bca04f32fa95 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Argument.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class Argument + { + /// The value. + /// The name. + public static void AssertNotNull(T value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + } + + /// The value. + /// The name. + public static void AssertNotNull(T? value, string name) + where T : struct + { + if (!value.HasValue) + { + throw new ArgumentNullException(name); + } + } + + /// The value. + /// The name. + public static void AssertNotNullOrEmpty(IEnumerable value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value is ICollection collectionOfT && collectionOfT.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + if (value is ICollection collection && collection.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + using IEnumerator e = value.GetEnumerator(); + if (!e.MoveNext()) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + } + + /// The value. + /// The name. + public static void AssertNotNullOrEmpty(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value.Length == 0) + { + throw new ArgumentException("Value cannot be an empty string.", name); + } + } + + /// The value. + /// The name. + public static void AssertNotNullOrWhiteSpace(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (string.IsNullOrWhiteSpace(value)) + { + throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); + } + } + + /// The value. + /// The minimum value. + /// The maximum value. + /// The name. + public static void AssertInRange(T value, T minimum, T maximum, string name) + where T : notnull, IComparable + { + if (minimum.CompareTo(value) > 0) + { + throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); + } + if (maximum.CompareTo(value) < 0) + { + throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); + } + } + + /// The value. + /// The name. + public static string CheckNotNullOrEmpty(string value, string name) + { + AssertNotNullOrEmpty(value, name); + return value; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/AsyncPageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/AsyncPageableWrapper.cs new file mode 100644 index 000000000000..78e425d1fa6b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/AsyncPageableWrapper.cs @@ -0,0 +1,48 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class AsyncPageableWrapper : AsyncPageable + { + /// The source async pageable value of type AsyncPageable<T>. + private AsyncPageable _source; + /// The converter function from T to U. + private Func _converter; + + /// Initializes a new instance of the AsyncPageableWrapper class. + /// The source async pageable value of type AsyncPageable<T>. + /// The converter function from T to U. + public AsyncPageableWrapper(AsyncPageable source, Func converter) + { + _source = source; + _converter = converter; + } + + /// Converts the pages from AsyncPageable to Page. + /// A continuation token from a previous response. + /// An optional hint to specify the desired size of each page. + /// An enumerable of pages containing converted items of type U. + public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) + { + await foreach (Page page in _source.AsPages(continuationToken, pageSizeHint).ConfigureAwait(false)) + { + List convertedItems = new List(); + foreach (T item in page.Values) + { + convertedItems.Add(_converter.Invoke(item)); + } + yield return Page.FromValues(convertedItems, page.ContinuationToken, page.GetRawResponse()); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingDictionary.cs new file mode 100644 index 000000000000..405ef9951982 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingDictionary.cs @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary + where TKey : notnull + { + private IDictionary _innerDictionary; + + public ChangeTrackingDictionary() + { + } + + /// The inner dictionary. + public ChangeTrackingDictionary(IDictionary dictionary) + { + if (dictionary == null) + { + return; + } + _innerDictionary = new Dictionary(dictionary); + } + + /// The inner dictionary. + public ChangeTrackingDictionary(IReadOnlyDictionary dictionary) + { + if (dictionary == null) + { + return; + } + _innerDictionary = new Dictionary(); + foreach (var pair in dictionary) + { + _innerDictionary.Add(pair); + } + } + + /// Gets the IsUndefined. + public bool IsUndefined => _innerDictionary == null; + + /// Gets the Count. + public int Count => IsUndefined ? 0 : EnsureDictionary().Count; + + /// Gets the IsReadOnly. + public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly; + + /// Gets the Keys. + public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys; + + /// Gets the Values. + public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values; + + /// Gets or sets the value associated with the specified key. + public TValue this[TKey key] + { + get + { + if (IsUndefined) + { + throw new KeyNotFoundException(nameof(key)); + } + return EnsureDictionary()[key]; + } + set + { + EnsureDictionary()[key] = value; + } + } + + /// Gets the Keys. + IEnumerable IReadOnlyDictionary.Keys => Keys; + + /// Gets the Values. + IEnumerable IReadOnlyDictionary.Values => Values; + + public IEnumerator> GetEnumerator() + { + if (IsUndefined) + { + IEnumerator> enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureDictionary().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + /// The item to add. + public void Add(KeyValuePair item) + { + EnsureDictionary().Add(item); + } + + public void Clear() + { + EnsureDictionary().Clear(); + } + + /// The item to search for. + public bool Contains(KeyValuePair item) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Contains(item); + } + + /// The array to copy. + /// The index. + public void CopyTo(KeyValuePair[] array, int index) + { + if (IsUndefined) + { + return; + } + EnsureDictionary().CopyTo(array, index); + } + + /// The item to remove. + public bool Remove(KeyValuePair item) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Remove(item); + } + + /// The key. + /// The value to add. + public void Add(TKey key, TValue value) + { + EnsureDictionary().Add(key, value); + } + + /// The key to search for. + public bool ContainsKey(TKey key) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().ContainsKey(key); + } + + /// The key. + public bool Remove(TKey key) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Remove(key); + } + + /// The key to search for. + /// The value. + public bool TryGetValue(TKey key, out TValue value) + { + if (IsUndefined) + { + value = default; + return false; + } + return EnsureDictionary().TryGetValue(key, out value); + } + + public IDictionary EnsureDictionary() + { + return _innerDictionary ??= new Dictionary(); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingList.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 000000000000..956a9795b3b7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + /// The inner list. + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + /// The inner list. + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + /// Gets the IsUndefined. + public bool IsUndefined => _innerList == null; + + /// Gets the Count. + public int Count => IsUndefined ? 0 : EnsureList().Count; + + /// Gets the IsReadOnly. + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + /// Gets or sets the value associated with the specified key. + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + /// The item to add. + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + /// The item. + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + /// The array to copy to. + /// The array index. + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + /// The item. + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + /// The item. + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + /// The inner list. + /// The item. + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + /// The inner list. + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ClientPipelineExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ClientPipelineExtensions.cs new file mode 100644 index 000000000000..b674986d996e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ClientPipelineExtensions.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class ClientPipelineExtensions + { + public static async ValueTask ProcessMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + (CancellationToken userCancellationToken, ErrorOptions errorOptions) = context.Parse(); + await pipeline.SendAsync(message, userCancellationToken).ConfigureAwait(false); + + if (message.Response.IsError && (errorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) + { + throw new RequestFailedException(message.Response); + } + + return message.Response; + } + + public static Response ProcessMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + (CancellationToken userCancellationToken, ErrorOptions errorOptions) = context.Parse(); + pipeline.Send(message, userCancellationToken); + + if (message.Response.IsError && (errorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) + { + throw new RequestFailedException(message.Response); + } + + return message.Response; + } + + public static async ValueTask> ProcessHeadAsBoolMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + Response response = await pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + switch (response.Status) + { + case >= 200 and < 300: + return Response.FromValue(true, response); + case >= 400 and < 500: + return Response.FromValue(false, response); + default: + return new ErrorResult(response, new RequestFailedException(response)); + } + } + + public static Response ProcessHeadAsBoolMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + Response response = pipeline.ProcessMessage(message, context); + switch (response.Status) + { + case >= 200 and < 300: + return Response.FromValue(true, response); + case >= 400 and < 500: + return Response.FromValue(false, response); + default: + return new ErrorResult(response, new RequestFailedException(response)); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenMemberAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenMemberAttribute.cs new file mode 100644 index 000000000000..72778edeb7e4 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenMemberAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Property | AttributeTargets.Field))] + internal partial class CodeGenMemberAttribute : CodeGenTypeAttribute + { + /// The original name of the member. + public CodeGenMemberAttribute(string originalName) : base(originalName) + { + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSerializationAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSerializationAttribute.cs new file mode 100644 index 000000000000..dfcabf517497 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSerializationAttribute.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct), AllowMultiple = true, Inherited = true)] + internal partial class CodeGenSerializationAttribute : Attribute + { + /// The property name which these hooks apply to. + public CodeGenSerializationAttribute(string propertyName) + { + PropertyName = propertyName; + } + + /// The property name which these hooks apply to. + /// The serialization name of the property. + public CodeGenSerializationAttribute(string propertyName, string serializationName) + { + PropertyName = propertyName; + SerializationName = serializationName; + } + + /// Gets or sets the property name which these hooks should apply to. + public string PropertyName { get; } + + /// Gets or sets the serialization name of the property. + public string SerializationName { get; set; } + + /// + /// Gets or sets the method name to use when serializing the property value (property name excluded). + /// The signature of the serialization hook method must be or compatible with when invoking: private void SerializeHook(Utf8JsonWriter writer); + /// + public string SerializationValueHook { get; set; } + + /// + /// Gets or sets the method name to use when deserializing the property value from the JSON. + /// private static void DeserializationHook(JsonProperty property, ref TypeOfTheProperty propertyValue); // if the property is required + /// private static void DeserializationHook(JsonProperty property, ref Optional<TypeOfTheProperty> propertyValue); // if the property is optional + /// + public string DeserializationValueHook { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSuppressAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSuppressAttribute.cs new file mode 100644 index 000000000000..38d536e69173 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSuppressAttribute.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct), AllowMultiple = true)] + internal partial class CodeGenSuppressAttribute : Attribute + { + /// The member to suppress. + /// The types of the parameters of the member. + public CodeGenSuppressAttribute(string member, params Type[] parameters) + { + Member = member; + Parameters = parameters; + } + + /// Gets the Member. + public string Member { get; } + + /// Gets the Parameters. + public Type[] Parameters { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenTypeAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenTypeAttribute.cs new file mode 100644 index 000000000000..f36b5f513173 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenTypeAttribute.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct))] + internal partial class CodeGenTypeAttribute : Attribute + { + /// The original name of the type. + public CodeGenTypeAttribute(string originalName) + { + OriginalName = originalName; + } + + /// Gets the OriginalName. + public string OriginalName { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ErrorResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ErrorResult.cs new file mode 100644 index 000000000000..569c4b59d031 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ErrorResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class ErrorResult : Response + { + private readonly Response _response; + private readonly RequestFailedException _exception; + + public ErrorResult(Response response, RequestFailedException exception) + { + _response = response; + _exception = exception; + } + + /// Gets the Value. + public override T Value => throw _exception; + + /// + public override Response GetRawResponse() + { + return _response; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ModelSerializationExtensions.cs new file mode 100644 index 000000000000..7487a473e7c8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ModelSerializationExtensions.cs @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Runtime.InteropServices; +using System.Text.Json; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class ModelSerializationExtensions + { + internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); + internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions + { + MaxDepth = 256 + }; + + public static object GetObject(this JsonElement element) + { + switch (element.ValueKind) + { + case JsonValueKind.String: + return element.GetString(); + case JsonValueKind.Number: + if (element.TryGetInt32(out int intValue)) + { + return intValue; + } + if (element.TryGetInt64(out long longValue)) + { + return longValue; + } + return element.GetDouble(); + case JsonValueKind.True: + return true; + case JsonValueKind.False: + return false; + case JsonValueKind.Undefined: + case JsonValueKind.Null: + return null; + case JsonValueKind.Object: + Dictionary dictionary = new Dictionary(); + foreach (var jsonProperty in element.EnumerateObject()) + { + dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); + } + return dictionary; + case JsonValueKind.Array: + List list = new List(); + foreach (var item in element.EnumerateArray()) + { + list.Add(item.GetObject()); + } + return list.ToArray(); + default: + throw new NotSupportedException($"Not supported value kind {element.ValueKind}"); + } + } + + public static byte[] GetBytesFromBase64(this JsonElement element, string format) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + + return format switch + { + "U" => TypeFormatters.FromBase64UrlString(element.GetRequiredString()), + "D" => element.GetBytesFromBase64(), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + } + + public static DateTimeOffset GetDateTimeOffset(this JsonElement element, string format) => format switch + { + "U" when element.ValueKind == JsonValueKind.Number => DateTimeOffset.FromUnixTimeSeconds(element.GetInt64()), + _ => TypeFormatters.ParseDateTimeOffset(element.GetString(), format) + }; + + public static TimeSpan GetTimeSpan(this JsonElement element, string format) => TypeFormatters.ParseTimeSpan(element.GetString(), format); + + public static char GetChar(this JsonElement element) + { + if (element.ValueKind == JsonValueKind.String) + { + string text = element.GetString(); + if (text == null || text.Length != 1) + { + throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); + } + return text[0]; + } + else + { + throw new NotSupportedException($"Cannot convert {element.ValueKind} to a char"); + } + } + + [Conditional("DEBUG")] + public static void ThrowNonNullablePropertyIsNull(this JsonProperty @property) + { + throw new JsonException($"A property '{@property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); + } + + public static string GetRequiredString(this JsonElement element) + { + string value = element.GetString(); + if (value == null) + { + throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); + } + return value; + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTime value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, TimeSpan value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, char value) + { + writer.WriteStringValue(value.ToString(CultureInfo.InvariantCulture)); + } + + public static void WriteBase64StringValue(this Utf8JsonWriter writer, byte[] value, string format) + { + if (value == null) + { + writer.WriteNullValue(); + return; + } + switch (format) + { + case "U": + writer.WriteStringValue(TypeFormatters.ToBase64UrlString(value)); + break; + case "D": + writer.WriteBase64StringValue(value); + break; + default: + throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)); + } + } + + public static void WriteNumberValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + if (format != "U") + { + throw new ArgumentOutOfRangeException(nameof(format), "Only 'U' format is supported when writing a DateTimeOffset as a Number."); + } + writer.WriteNumberValue(value.ToUnixTimeSeconds()); + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, T value, ModelReaderWriterOptions options = null) + { + switch (value) + { + case null: + writer.WriteNullValue(); + break; + case IJsonModel jsonModel: + jsonModel.Write(writer, options ?? WireOptions); + break; + case byte[] bytes: + writer.WriteBase64StringValue(bytes); + break; + case BinaryData bytes0: + writer.WriteBase64StringValue(bytes0); + break; + case JsonElement json: + json.WriteTo(writer); + break; + case int i: + writer.WriteNumberValue(i); + break; + case decimal d: + writer.WriteNumberValue(d); + break; + case double d0: + if (double.IsNaN(d0)) + { + writer.WriteStringValue("NaN"); + } + else + { + writer.WriteNumberValue(d0); + } + break; + case float f: + writer.WriteNumberValue(f); + break; + case long l: + writer.WriteNumberValue(l); + break; + case string s: + writer.WriteStringValue(s); + break; + case bool b: + writer.WriteBooleanValue(b); + break; + case Guid g: + writer.WriteStringValue(g); + break; + case DateTimeOffset dateTimeOffset: + writer.WriteStringValue(dateTimeOffset, "O"); + break; + case DateTime dateTime: + writer.WriteStringValue(dateTime, "O"); + break; + case IEnumerable> enumerable: + writer.WriteStartObject(); + foreach (var pair in enumerable) + { + writer.WritePropertyName(pair.Key); + writer.WriteObjectValue(pair.Value, options); + } + writer.WriteEndObject(); + break; + case IEnumerable objectEnumerable: + writer.WriteStartArray(); + foreach (var item in objectEnumerable) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + break; + case TimeSpan timeSpan: + writer.WriteStringValue(timeSpan, "P"); + break; + default: + throw new NotSupportedException($"Not supported type {value.GetType()}"); + } + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, object value, ModelReaderWriterOptions options = null) + { + writer.WriteObjectValue(value, options); + } + + public static BinaryData GetUtf8Bytes(this JsonElement element) + { +#if NET9_0_OR_GREATER + return new global::System.BinaryData(global::System.Runtime.InteropServices.JsonMarshal.GetRawUtf8Value(element).ToArray()); +#else + return BinaryData.FromString(element.GetRawText()); +#endif + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Optional.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Optional.cs new file mode 100644 index 000000000000..245e9bf41d07 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Optional.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class Optional + { + public static bool IsCollectionDefined(IEnumerable collection) + { + return !(collection is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined); + } + + public static bool IsCollectionDefined(IDictionary collection) + { + return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); + } + + public static bool IsCollectionDefined(IReadOnlyDictionary collection) + { + return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); + } + + public static bool IsDefined(T? value) + where T : struct + { + return value.HasValue; + } + + public static bool IsDefined(object value) + { + return value != null; + } + + public static bool IsDefined(string value) + { + return value != null; + } + + public static bool IsDefined(JsonElement value) + { + return value.ValueKind != JsonValueKind.Undefined; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/PageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/PageableWrapper.cs new file mode 100644 index 000000000000..8fa01cc13c70 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/PageableWrapper.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class PageableWrapper : Pageable + { + /// The source pageable value of type Pageable<T>. + private Pageable _source; + /// The converter function from T to U. + private Func _converter; + + /// Initializes a new instance of the PageableWrapper class. + /// The source pageable value of type Pageable<T>. + /// The converter function from T to U. + public PageableWrapper(Pageable source, Func converter) + { + _source = source; + _converter = converter; + } + + /// Converts the pages from Pageable to Page. + /// A continuation token from a previous response. + /// An optional hint to specify the desired size of each page. + /// An enumerable of pages containing converted items of type U. + public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) + { + foreach (Page page in _source.AsPages(continuationToken, pageSizeHint)) + { + List convertedItems = new List(); + foreach (T item in page.Values) + { + convertedItems.Add(_converter.Invoke(item)); + } + yield return Page.FromValues(convertedItems, page.ContinuationToken, page.GetRawResponse()); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RawRequestUriBuilderExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RawRequestUriBuilderExtensions.cs new file mode 100644 index 000000000000..6ccb3a909416 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RawRequestUriBuilderExtensions.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class RawRequestUriBuilderExtensions + { + public static void AppendQueryDelimited(this RawRequestUriBuilder builder, string name, IEnumerable value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true) + { + delimiter ??= ","; + IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format)); + builder.AppendQuery(name, string.Join(delimiter, stringValues), escape); + } + + public static void UpdateQuery(this RawRequestUriBuilder builder, string name, string value) + { + string currentQuery = builder.Query; + string searchPattern = string.Concat(name, "="); + int paramStartIndex = -1; + if (currentQuery.StartsWith(string.Concat("?", searchPattern))) + { + paramStartIndex = 1; + } + if (paramStartIndex == -1) + { + string prefixedPattern = string.Concat("&", searchPattern); + int prefixedIndex = currentQuery.IndexOf(prefixedPattern); + if (prefixedIndex >= 0) + { + paramStartIndex = prefixedIndex + 1; + } + } + if (paramStartIndex >= 0) + { + int valueStartIndex = paramStartIndex + searchPattern.Length; + int valueEndIndex = currentQuery.IndexOf('&', valueStartIndex); + if (valueEndIndex == -1) + { + valueEndIndex = currentQuery.Length; + } + string beforeParam = currentQuery.Substring(0, valueStartIndex); + string afterParam = currentQuery.Substring(valueEndIndex); + string newQuery = string.Concat(beforeParam, value, afterParam); + builder.Query = newQuery; + } + else + { + builder.AppendQuery(name, value, true); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RequestContextExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RequestContextExtensions.cs new file mode 100644 index 000000000000..ebef33052755 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RequestContextExtensions.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using Azure; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class RequestContextExtensions + { + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + public static ValueTuple Parse(this RequestContext context) + { + if (context == null) + { + return (CancellationToken.None, ErrorOptions.Default); + } + return (context.CancellationToken, context.ErrorOptions); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/SerializationFormat.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/SerializationFormat.cs new file mode 100644 index 000000000000..c0727b5226ff --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/SerializationFormat.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.HorizonDb +{ + internal enum SerializationFormat + { + /// The default serialization format. + Default = 0, + /// The RFC1123 date time format. + DateTime_RFC1123 = 1, + /// The RFC3339 date time format. + DateTime_RFC3339 = 2, + /// The RFC7231 date time format. + DateTime_RFC7231 = 3, + /// The ISO8601 date time format. + DateTime_ISO8601 = 4, + /// The Unix date time format. + DateTime_Unix = 5, + /// The ISO8601 date format. + Date_ISO8601 = 6, + /// The ISO8601 duration format. + Duration_ISO8601 = 7, + /// The constant duration format. + Duration_Constant = 8, + /// The seconds duration format. + Duration_Seconds = 9, + /// The seconds duration format with float precision. + Duration_Seconds_Float = 10, + /// The seconds duration format with double precision. + Duration_Seconds_Double = 11, + /// The milliseconds duration format. + Duration_Milliseconds = 12, + /// The milliseconds duration format with float precision. + Duration_Milliseconds_Float = 13, + /// The milliseconds duration format with double precision. + Duration_Milliseconds_Double = 14, + /// The ISO8601 time format. + Time_ISO8601 = 15, + /// The Base64Url bytes format. + Bytes_Base64Url = 16, + /// The Base64 bytes format. + Bytes_Base64 = 17 + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/TypeFormatters.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/TypeFormatters.cs new file mode 100644 index 000000000000..390edd9fe7ff --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/TypeFormatters.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Xml; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class TypeFormatters + { + private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; + public const string DefaultNumberFormat = "G"; + + public static string ToString(bool value) => value ? "true" : "false"; + + public static string ToString(DateTime value, string format) => value.Kind switch + { + DateTimeKind.Utc => ToString((DateTimeOffset)value, format), + _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Generated clients require it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") + }; + + public static string ToString(DateTimeOffset value, string format) => format switch + { + "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), + "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), + "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "R" => value.ToString("r", CultureInfo.InvariantCulture), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(TimeSpan value, string format) => format switch + { + "P" => XmlConvert.ToString(value), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(byte[] value, string format) => format switch + { + "U" => ToBase64UrlString(value), + "D" => Convert.ToBase64String(value), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + + public static string ToBase64UrlString(byte[] value) + { + int numWholeOrPartialInputBlocks = checked (value.Length + 2) / 3; + int size = checked (numWholeOrPartialInputBlocks * 4); + char[] output = new char[size]; + + int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); + + int i = 0; + for (; i < numBase64Chars; i++) + { + char ch = output[i]; + if (ch == '+') + { + output[i] = '-'; + } + else + { + if (ch == '/') + { + output[i] = '_'; + } + else + { + if (ch == '=') + { + break; + } + } + } + } + + return new string(output, 0, i); + } + + public static byte[] FromBase64UrlString(string value) + { + int paddingCharsToAdd = (value.Length % 4) switch + { + 0 => 0, + 2 => 2, + 3 => 1, + _ => throw new InvalidOperationException("Malformed input") + }; + char[] output = new char[(value.Length + paddingCharsToAdd)]; + int i = 0; + for (; i < value.Length; i++) + { + char ch = value[i]; + if (ch == '-') + { + output[i] = '+'; + } + else + { + if (ch == '_') + { + output[i] = '/'; + } + else + { + output[i] = ch; + } + } + } + + for (; i < output.Length; i++) + { + output[i] = '='; + } + + return Convert.FromBase64CharArray(output, 0, output.Length); + } + + public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch + { + "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), + _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) + }; + + public static TimeSpan ParseTimeSpan(string value, string format) => format switch + { + "P" => XmlConvert.ToTimeSpan(value), + _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) + }; + + public static string ToFormatSpecifier(SerializationFormat format) => format switch + { + SerializationFormat.DateTime_RFC1123 => "R", + SerializationFormat.DateTime_RFC3339 => "O", + SerializationFormat.DateTime_RFC7231 => "R", + SerializationFormat.DateTime_ISO8601 => "O", + SerializationFormat.Date_ISO8601 => "D", + SerializationFormat.DateTime_Unix => "U", + SerializationFormat.Bytes_Base64Url => "U", + SerializationFormat.Bytes_Base64 => "D", + SerializationFormat.Duration_ISO8601 => "P", + SerializationFormat.Duration_Constant => "c", + SerializationFormat.Duration_Seconds => "%s", + SerializationFormat.Duration_Seconds_Float => "s\\.FFF", + SerializationFormat.Duration_Seconds_Double => "s\\.FFFFFF", + SerializationFormat.Time_ISO8601 => "T", + _ => null + }; + + public static string ConvertToString(object value, SerializationFormat format = SerializationFormat.Default) + { + string formatSpecifier = ToFormatSpecifier(format); + + return value switch + { + null => "null", + string s => s, + bool b => ToString(b), + int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), + byte[] b0 when formatSpecifier != null => ToString(b0, formatSpecifier), + IEnumerable s0 => string.Join(",", s0), + DateTimeOffset dateTime when formatSpecifier != null => ToString(dateTime, formatSpecifier), + TimeSpan timeSpan when format == SerializationFormat.Duration_Seconds => Convert.ToInt32(timeSpan.TotalSeconds).ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan0 when format == SerializationFormat.Duration_Seconds_Float || format == SerializationFormat.Duration_Seconds_Double => timeSpan0.TotalSeconds.ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan1 when format == SerializationFormat.Duration_Milliseconds => Convert.ToInt32(timeSpan1.TotalMilliseconds).ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan2 when format == SerializationFormat.Duration_Milliseconds_Float || format == SerializationFormat.Duration_Milliseconds_Double => timeSpan2.TotalMilliseconds.ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan3 when formatSpecifier != null => ToString(timeSpan3, formatSpecifier), + TimeSpan timeSpan4 => XmlConvert.ToString(timeSpan4), + Guid guid => guid.ToString(), + BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), + _ => value.ToString() + }; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs new file mode 100644 index 000000000000..cbe6e72774be --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs @@ -0,0 +1,106 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbArmOperation : ArmOperation + { + private readonly OperationInternal _operation; + private readonly RehydrationToken? _completeRehydrationToken; + private readonly NextLinkOperationImplementation _nextLinkOperation; + private readonly string _operationId; + + /// Initializes a new instance of HorizonDbArmOperation for mocking. + protected HorizonDbArmOperation() + { + } + + /// + /// The operation response. + /// The token to rehydrate the operation. + internal HorizonDbArmOperation(Response response, RehydrationToken? rehydrationToken = null) + { + _operation = OperationInternal.Succeeded(response); + _completeRehydrationToken = rehydrationToken; + _operationId = GetOperationId(rehydrationToken); + } + + /// + /// The instance of . + /// The instance of . + /// The operation request. + /// The operation response. + /// The finalStateVia of the operation. + /// If should skip Api version override. + /// The Api version override value. + internal HorizonDbArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) + { + IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); + if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationImplementation) + { + _nextLinkOperation = nextLinkOperationImplementation; + _operationId = _nextLinkOperation.OperationId; + } + else + { + _completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia); + _operationId = GetOperationId(_completeRehydrationToken); + } + _operation = new OperationInternal( + nextLinkOperation, + clientDiagnostics, + response, + "HorizonDbArmOperation", + null, + new SequentialDelayStrategy()); + } + + /// Gets the Id. + public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet; + + /// Gets the HasCompleted. + public override bool HasCompleted => _operation.HasCompleted; + + /// The token to rehydrate a long-running operation. + private string GetOperationId(RehydrationToken? rehydrationToken) + { + return rehydrationToken?.Id; + } + + /// + public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken; + + /// + public override Response GetRawResponse() => _operation.RawResponse; + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken); + + /// + public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs new file mode 100644 index 000000000000..3dd811edf323 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs @@ -0,0 +1,113 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbArmOperation : ArmOperation + { + private readonly OperationInternal _operation; + private readonly RehydrationToken? _completeRehydrationToken; + private readonly NextLinkOperationImplementation _nextLinkOperation; + private readonly string _operationId; + + /// Initializes a new instance of HorizonDbArmOperation for mocking. + protected HorizonDbArmOperation() + { + } + + /// + /// The operation response. + /// The token to rehydrate the operation. + internal HorizonDbArmOperation(Response response, RehydrationToken? rehydrationToken = null) + { + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _completeRehydrationToken = rehydrationToken; + _operationId = GetOperationId(rehydrationToken); + } + + /// + /// The instance of . + /// The instance of . + /// The instance of . + /// The operation request. + /// The operation response. + /// The finalStateVia of the operation. + /// If should skip Api version override. + /// The Api version override value. + internal HorizonDbArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) + { + IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); + if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationImplementation) + { + _nextLinkOperation = nextLinkOperationImplementation; + _operationId = _nextLinkOperation.OperationId; + } + else + { + _completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia); + _operationId = GetOperationId(_completeRehydrationToken); + } + _operation = new OperationInternal( + NextLinkOperationImplementation.Create(source, nextLinkOperation), + clientDiagnostics, + response, + "HorizonDbArmOperation", + null, + new SequentialDelayStrategy()); + } + + /// Gets the Id. + public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet; + + /// Gets the Value. + public override T Value => _operation.Value; + + /// Gets the HasValue. + public override bool HasValue => _operation.HasValue; + + /// Gets the HasCompleted. + public override bool HasCompleted => _operation.HasCompleted; + + /// The token to rehydrate a long-running operation. + private string GetOperationId(RehydrationToken? rehydrationToken) + { + return rehydrationToken?.Id; + } + + /// + public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken; + + /// + public override Response GetRawResponse() => _operation.RawResponse; + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken); + + /// + public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs new file mode 100644 index 000000000000..19aaf5c7ab63 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + internal partial class HorizonDbClusterOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbClusterOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbClusterResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbClusterData data = HorizonDbClusterData.DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbClusterResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbClusterData data = HorizonDbClusterData.DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbClusterResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs new file mode 100644 index 000000000000..b36a22cce321 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + internal partial class HorizonDbFirewallRuleOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbFirewallRuleOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbFirewallRuleResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbFirewallRuleData data = HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbFirewallRuleResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbFirewallRuleData data = HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbFirewallRuleResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs new file mode 100644 index 000000000000..cca2ba40d315 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + internal partial class HorizonDbParameterGroupOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbParameterGroupOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbParameterGroupResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbParameterGroupData data = HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbParameterGroupResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbParameterGroupData data = HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbParameterGroupResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs new file mode 100644 index 000000000000..73c3c854b36d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.HorizonDb.Models; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + internal partial class HorizonDbPrivateEndpointConnectionOperationSource : IOperationSource + { + /// + internal HorizonDbPrivateEndpointConnectionOperationSource() + { + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbPrivateEndpointConnection IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbPrivateEndpointConnection result = HorizonDbPrivateEndpointConnection.DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, ModelSerializationExtensions.WireOptions); + return result; + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbPrivateEndpointConnection result = HorizonDbPrivateEndpointConnection.DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, ModelSerializationExtensions.WireOptions); + return result; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs new file mode 100644 index 000000000000..8368fe365b87 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + internal partial class HorizonDbReplicaOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbReplicaOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbReplicaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbReplicaData data = HorizonDbReplicaData.DeserializeHorizonDbReplicaData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbReplicaResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbReplicaData data = HorizonDbReplicaData.DeserializeHorizonDbReplicaData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbReplicaResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs new file mode 100644 index 000000000000..04522265d6e4 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.ClientModel.Primitives; +using Azure; +using Azure.ResourceManager.HorizonDb.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + /// Context class which will be filled in by the System.ClientModel.SourceGeneration. + /// For more information + /// + [ModelReaderWriterBuildable(typeof(HorizonDbClusterData))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterParameterGroupConnectionProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterPropertiesForPatchUpdate))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleData))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupConnectionProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupConnectionPropertiesListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupData))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPropertiesForPatchUpdate))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolData))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateEndpointConnection))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceData))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkServiceConnectionState))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaData))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaPropertiesForPatchUpdate))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaResource))] + [ModelReaderWriterBuildable(typeof(Network))] + [ModelReaderWriterBuildable(typeof(OptionalPropertiesUpdateableProperties))] + [ModelReaderWriterBuildable(typeof(ParameterProperties))] + [ModelReaderWriterBuildable(typeof(PrivateEndpoint))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionProperties))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResource))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResourceData))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResourceListResult))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionUpdate))] + [ModelReaderWriterBuildable(typeof(ResponseError))] + [ModelReaderWriterBuildable(typeof(SystemData))] + public partial class AzureResourceManagerHorizonDbContext : ModelReaderWriterContext + { + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModeCluster.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModeCluster.cs new file mode 100644 index 000000000000..e15ca26a55ce --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModeCluster.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The mode to create a new HorizonDb cluster. + public readonly partial struct CreateModeCluster : IEquatable + { + private readonly string _value; + /// Create a new cluster. + private const string CreateValue = "Create"; + /// Update an existing cluster. + private const string UpdateValue = "Update"; + /// Create cluster from point-in-time restore. + private const string PointInTimeRestoreValue = "PointInTimeRestore"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public CreateModeCluster(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Create a new cluster. + public static CreateModeCluster Create { get; } = new CreateModeCluster(CreateValue); + + /// Update an existing cluster. + public static CreateModeCluster Update { get; } = new CreateModeCluster(UpdateValue); + + /// Create cluster from point-in-time restore. + public static CreateModeCluster PointInTimeRestore { get; } = new CreateModeCluster(PointInTimeRestoreValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(CreateModeCluster left, CreateModeCluster right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(CreateModeCluster left, CreateModeCluster right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModeCluster(string value) => new CreateModeCluster(value); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModeCluster?(string value) => value == null ? null : new CreateModeCluster(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CreateModeCluster other && Equals(other); + + /// + public bool Equals(CreateModeCluster other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModePool.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModePool.cs new file mode 100644 index 000000000000..836f60aa8d67 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModePool.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The mode to create a new HorizonDb cluster. + public readonly partial struct CreateModePool : IEquatable + { + private readonly string _value; + /// Create a new pool. + private const string CreateValue = "Create"; + /// Update an existing pool. + private const string UpdateValue = "Update"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public CreateModePool(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Create a new pool. + public static CreateModePool Create { get; } = new CreateModePool(CreateValue); + + /// Update an existing pool. + public static CreateModePool Update { get; } = new CreateModePool(UpdateValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(CreateModePool left, CreateModePool right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(CreateModePool left, CreateModePool right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModePool(string value) => new CreateModePool(value); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModePool?(string value) => value == null ? null : new CreateModePool(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CreateModePool other && Equals(other); + + /// + public bool Equals(CreateModePool other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs new file mode 100644 index 000000000000..920b6bf738ef --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbCluster list operation. + internal partial class HorizonDbClusterListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbClusterListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterListResult 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 DeserializeHorizonDbClusterListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterListResult)} 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(HorizonDbClusterListResult)} 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. + HorizonDbClusterListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbClusterListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbClusterListResult(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 virtual 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(HorizonDbClusterListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbClusterData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterListResult 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(HorizonDbClusterListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterListResult DeserializeHorizonDbClusterListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbClusterData.DeserializeHorizonDbClusterData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.cs new file mode 100644 index 000000000000..d9766edf1ff1 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbCluster list operation. + internal partial class HorizonDbClusterListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbCluster items on this page. + internal HorizonDbClusterListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbCluster items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbCluster items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..c515ede771c5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbClusterParameterGroupConnectionProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterParameterGroupConnectionProperties 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 DeserializeHorizonDbClusterParameterGroupConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterParameterGroupConnectionProperties)} 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(HorizonDbClusterParameterGroupConnectionProperties)} 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. + HorizonDbClusterParameterGroupConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbClusterParameterGroupConnectionProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W" && Optional.IsDefined(SyncStatus)) + { + writer.WritePropertyName("syncStatus"u8); + writer.WriteStringValue(SyncStatus); + } + if (Optional.IsDefined(ApplyImmediately)) + { + writer.WritePropertyName("applyImmediately"u8); + writer.WriteBooleanValue(ApplyImmediately.Value); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterParameterGroupConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterParameterGroupConnectionProperties 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(HorizonDbClusterParameterGroupConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterParameterGroupConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterParameterGroupConnectionProperties DeserializeHorizonDbClusterParameterGroupConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string syncStatus = default; + bool? applyImmediately = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + 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("syncStatus"u8)) + { + syncStatus = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("applyImmediately"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applyImmediately = prop.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterParameterGroupConnectionProperties(id, syncStatus, applyImmediately, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs new file mode 100644 index 000000000000..6da14e01325b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbClusterParameterGroupConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbClusterParameterGroupConnectionProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterParameterGroupConnectionProperties(ResourceIdentifier id, string syncStatus, bool? applyImmediately, IDictionary additionalBinaryDataProperties) + { + Id = id; + SyncStatus = syncStatus; + ApplyImmediately = applyImmediately; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The resource ID of the connected parameter group. + public ResourceIdentifier Id { get; set; } + + /// Indication of if parameter group is applied on HorizonDb resource. + public string SyncStatus { get; } + + /// Indicates whether the parameters should be applied immediately. + public bool? ApplyImmediately { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs new file mode 100644 index 000000000000..838cb5289670 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// HorizonDb cluster for update operations. + public partial class HorizonDbClusterPatch : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPatch 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 DeserializeHorizonDbClusterPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterPatch)} 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(HorizonDbClusterPatch)} 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. + HorizonDbClusterPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbClusterPatch horizonDbClusterPatch) + { + if (horizonDbClusterPatch == null) + { + return null; + } + return RequestContent.Create(horizonDbClusterPatch, 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 virtual 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(HorizonDbClusterPatch)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPatch 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(HorizonDbClusterPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterPatch DeserializeHorizonDbClusterPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + HorizonDbClusterPropertiesForPatchUpdate properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbClusterPropertiesForPatchUpdate.DeserializeHorizonDbClusterPropertiesForPatchUpdate(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.cs new file mode 100644 index 000000000000..ceb956198e32 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// HorizonDb cluster for update operations. + public partial class HorizonDbClusterPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbClusterPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Resource tags. + /// The properties that can be updated for a HorizonDb cluster. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterPatch(IDictionary tags, HorizonDbClusterPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) + { + Tags = tags; + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Resource tags. + public IDictionary Tags { get; } + + /// The properties that can be updated for a HorizonDb cluster. + public HorizonDbClusterPropertiesForPatchUpdate Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs new file mode 100644 index 000000000000..c0ece010253d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs @@ -0,0 +1,378 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb cluster. + public partial class HorizonDbClusterProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbClusterProperties() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterProperties 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 DeserializeHorizonDbClusterProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterProperties)} 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(HorizonDbClusterProperties)} 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. + HorizonDbClusterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbClusterProperties)} does not support writing '{format}' format."); + } + writer.WritePropertyName("administratorLogin"u8); + writer.WriteStringValue(AdministratorLogin); + if (Optional.IsDefined(AdministratorLoginPassword)) + { + writer.WritePropertyName("administratorLoginPassword"u8); + writer.WriteStringValue(AdministratorLoginPassword); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(CreateMode)) + { + writer.WritePropertyName("createMode"u8); + writer.WriteStringValue(CreateMode.Value.ToString()); + } + if (Optional.IsDefined(PointInTimeUTC)) + { + writer.WritePropertyName("pointInTimeUTC"u8); + writer.WriteStringValue(PointInTimeUTC.Value, "O"); + } + if (Optional.IsDefined(SourceClusterResourceId)) + { + writer.WritePropertyName("sourceClusterResourceId"u8); + writer.WriteStringValue(SourceClusterResourceId); + } + if (Optional.IsDefined(PoolName)) + { + writer.WritePropertyName("poolName"u8); + writer.WriteStringValue(PoolName); + } + if (Optional.IsDefined(ReplicaCount)) + { + writer.WritePropertyName("replicaCount"u8); + writer.WriteNumberValue(ReplicaCount.Value); + } + if (Optional.IsDefined(VCores)) + { + writer.WritePropertyName("vCores"u8); + writer.WriteNumberValue(VCores.Value); + } + if (Optional.IsDefined(ProcessorType)) + { + writer.WritePropertyName("processorType"u8); + writer.WriteStringValue(ProcessorType); + } + if (Optional.IsDefined(Network)) + { + writer.WritePropertyName("network"u8); + writer.WriteObjectValue(Network, options); + } + if (options.Format != "W" && Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(FullyQualifiedDomainName)) + { + writer.WritePropertyName("fullyQualifiedDomainName"u8); + writer.WriteStringValue(FullyQualifiedDomainName); + } + if (options.Format != "W" && Optional.IsDefined(ReadonlyEndpoint)) + { + writer.WritePropertyName("readonlyEndpoint"u8); + writer.WriteStringValue(ReadonlyEndpoint); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(ZonePlacementPolicy)) + { + writer.WritePropertyName("zonePlacementPolicy"u8); + writer.WriteStringValue(ZonePlacementPolicy.Value.ToString()); + } + if (Optional.IsDefined(ParameterGroup)) + { + writer.WritePropertyName("parameterGroup"u8); + writer.WriteObjectValue(ParameterGroup, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterProperties 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(HorizonDbClusterProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + 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; + Network network = default; + State? state = default; + string fullyQualifiedDomainName = default; + string readonlyEndpoint = default; + ProvisioningState? provisioningState = default; + ZonePlacementPolicy? zonePlacementPolicy = default; + HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("administratorLogin"u8)) + { + administratorLogin = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("administratorLoginPassword"u8)) + { + administratorLoginPassword = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("version"u8)) + { + version = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("createMode"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createMode = new CreateModeCluster(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("pointInTimeUTC"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pointInTimeUTC = prop.Value.GetDateTimeOffset("O"); + continue; + } + if (prop.NameEquals("sourceClusterResourceId"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceClusterResourceId = new ResourceIdentifier(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("poolName"u8)) + { + poolName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("replicaCount"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicaCount = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("vCores"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + vCores = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("processorType"u8)) + { + processorType = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("network"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + network = Network.DeserializeNetwork(prop.Value, options); + continue; + } + if (prop.NameEquals("state"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new State(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("fullyQualifiedDomainName"u8)) + { + fullyQualifiedDomainName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("readonlyEndpoint"u8)) + { + readonlyEndpoint = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("zonePlacementPolicy"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + zonePlacementPolicy = new ZonePlacementPolicy(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("parameterGroup"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parameterGroup = HorizonDbClusterParameterGroupConnectionProperties.DeserializeHorizonDbClusterParameterGroupConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterProperties( + administratorLogin, + administratorLoginPassword, + version, + createMode, + pointInTimeUTC, + sourceClusterResourceId, + poolName, + replicaCount, + vCores, + processorType, + network, + state, + fullyQualifiedDomainName, + readonlyEndpoint, + provisioningState, + zonePlacementPolicy, + parameterGroup, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.cs new file mode 100644 index 000000000000..a74a2f27e595 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.cs @@ -0,0 +1,132 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb cluster. + public partial class HorizonDbClusterProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The administrator login name. + /// is null. + public HorizonDbClusterProperties(string administratorLogin) + { + Argument.AssertNotNull(administratorLogin, nameof(administratorLogin)); + + AdministratorLogin = administratorLogin; + } + + /// Initializes a new instance of . + /// 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 network related info. + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterProperties(string administratorLogin, string administratorLoginPassword, string version, CreateModeCluster? createMode, DateTimeOffset? pointInTimeUTC, ResourceIdentifier sourceClusterResourceId, string poolName, int? replicaCount, int? vCores, string processorType, Network network, State? state, string fullyQualifiedDomainName, string readonlyEndpoint, ProvisioningState? provisioningState, ZonePlacementPolicy? zonePlacementPolicy, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) + { + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + Version = version; + CreateMode = createMode; + PointInTimeUTC = pointInTimeUTC; + SourceClusterResourceId = sourceClusterResourceId; + PoolName = poolName; + ReplicaCount = replicaCount; + VCores = vCores; + ProcessorType = processorType; + Network = network; + State = state; + FullyQualifiedDomainName = fullyQualifiedDomainName; + ReadonlyEndpoint = readonlyEndpoint; + ProvisioningState = provisioningState; + ZonePlacementPolicy = zonePlacementPolicy; + ParameterGroup = parameterGroup; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The administrator login name. + public string AdministratorLogin { get; set; } + + /// The administrator login password. + public string AdministratorLoginPassword { get; set; } + + /// The version of the HorizonDb cluster. + public string Version { get; set; } + + /// The mode to create a new HorizonDb cluster. + public CreateModeCluster? CreateMode { get; set; } + + /// Restore point creation time specifying the time to restore from. + public DateTimeOffset? PointInTimeUTC { get; set; } + + /// The source cluster resource ID for restore or replica creation. + public ResourceIdentifier SourceClusterResourceId { get; set; } + + /// The pool name for restore or replica operations. + public string PoolName { get; set; } + + /// Number of replicas. + public int? ReplicaCount { get; set; } + + /// Number of vCores. + public int? VCores { get; set; } + + /// The processor type for the HorizonDb cluster. + public string ProcessorType { get; set; } + + /// The network related info. + internal Network Network { get; set; } + + /// Current state of the cluster. + public State? State { get; } + + /// The fully qualified domain name of the cluster. + public string FullyQualifiedDomainName { get; } + + /// The fully qualified domain name used for readonly endpoint for the cluster. + public string ReadonlyEndpoint { get; } + + /// The provisioning state of the cluster. + public ProvisioningState? ProvisioningState { get; } + + /// Defines how replicas are placed across availability zones. + public ZonePlacementPolicy? ZonePlacementPolicy { get; set; } + + /// Defines connection to a parameter group. + public HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get; set; } + + /// The flag indicating whether public ip is requested. + public PublicNetworkAccessState? PublicNetworkAccess + { + get + { + return Network is null ? default : Network.PublicNetworkAccess; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs new file mode 100644 index 000000000000..99cb3933c449 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb cluster for update operations. + public partial class HorizonDbClusterPropertiesForPatchUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPropertiesForPatchUpdate 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 DeserializeHorizonDbClusterPropertiesForPatchUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterPropertiesForPatchUpdate)} 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(HorizonDbClusterPropertiesForPatchUpdate)} 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. + HorizonDbClusterPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbClusterPropertiesForPatchUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(AdministratorLoginPassword)) + { + writer.WritePropertyName("administratorLoginPassword"u8); + writer.WriteStringValue(AdministratorLoginPassword); + } + if (Optional.IsDefined(VCores)) + { + writer.WritePropertyName("vCores"u8); + writer.WriteNumberValue(VCores.Value); + } + if (Optional.IsDefined(ParameterGroup)) + { + writer.WritePropertyName("parameterGroup"u8); + writer.WriteObjectValue(ParameterGroup, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPropertiesForPatchUpdate 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(HorizonDbClusterPropertiesForPatchUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterPropertiesForPatchUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterPropertiesForPatchUpdate DeserializeHorizonDbClusterPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string administratorLoginPassword = default; + int? vCores = default; + HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("administratorLoginPassword"u8)) + { + administratorLoginPassword = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("vCores"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + vCores = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("parameterGroup"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parameterGroup = HorizonDbClusterParameterGroupConnectionProperties.DeserializeHorizonDbClusterParameterGroupConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterPropertiesForPatchUpdate(administratorLoginPassword, vCores, parameterGroup, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs new file mode 100644 index 000000000000..09d7aaf8bc09 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.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; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb cluster for update operations. + public partial class HorizonDbClusterPropertiesForPatchUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbClusterPropertiesForPatchUpdate() + { + } + + /// Initializes a new instance of . + /// The administrator login password. + /// Number of vCores. + /// Defines connection to a parameter group. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterPropertiesForPatchUpdate(string administratorLoginPassword, int? vCores, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) + { + AdministratorLoginPassword = administratorLoginPassword; + VCores = vCores; + ParameterGroup = parameterGroup; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The administrator login password. + public string AdministratorLoginPassword { get; set; } + + /// Number of vCores. + public int? VCores { get; set; } + + /// Defines connection to a parameter group. + public HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs new file mode 100644 index 000000000000..c71a9b9ed916 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbFirewallRule list operation. + internal partial class HorizonDbFirewallRuleListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbFirewallRuleListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleListResult 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 DeserializeHorizonDbFirewallRuleListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbFirewallRuleListResult)} 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(HorizonDbFirewallRuleListResult)} 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. + HorizonDbFirewallRuleListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbFirewallRuleListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbFirewallRuleListResult(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 virtual 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(HorizonDbFirewallRuleListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbFirewallRuleData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbFirewallRuleListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleListResult 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(HorizonDbFirewallRuleListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbFirewallRuleListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbFirewallRuleListResult DeserializeHorizonDbFirewallRuleListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbFirewallRuleListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.cs new file mode 100644 index 000000000000..856c4f9f3709 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbFirewallRule list operation. + internal partial class HorizonDbFirewallRuleListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbFirewallRule items on this page. + internal HorizonDbFirewallRuleListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbFirewallRule items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbFirewallRuleListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbFirewallRule items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs new file mode 100644 index 000000000000..4b465679e2fd --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb firewall rule. + public partial class HorizonDbFirewallRuleProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbFirewallRuleProperties() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleProperties 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 DeserializeHorizonDbFirewallRuleProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbFirewallRuleProperties)} 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(HorizonDbFirewallRuleProperties)} 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. + HorizonDbFirewallRuleProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbFirewallRuleProperties)} does not support writing '{format}' format."); + } + writer.WritePropertyName("startIpAddress"u8); + writer.WriteStringValue(StartIpAddress); + writer.WritePropertyName("endIpAddress"u8); + writer.WriteStringValue(EndIpAddress); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbFirewallRuleProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleProperties 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(HorizonDbFirewallRuleProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbFirewallRuleProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbFirewallRuleProperties DeserializeHorizonDbFirewallRuleProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string startIpAddress = default; + string endIpAddress = default; + string description = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("startIpAddress"u8)) + { + startIpAddress = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("endIpAddress"u8)) + { + endIpAddress = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbFirewallRuleProperties(startIpAddress, endIpAddress, description, provisioningState, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.cs new file mode 100644 index 000000000000..1849e052c0bd --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb firewall rule. + public partial class HorizonDbFirewallRuleProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The start IP address of the firewall rule (IPv4). + /// The end IP address of the firewall rule (IPv4). + /// or is null. + public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) + { + Argument.AssertNotNull(startIpAddress, nameof(startIpAddress)); + Argument.AssertNotNull(endIpAddress, nameof(endIpAddress)); + + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress, string description, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + Description = description; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The start IP address of the firewall rule (IPv4). + public string StartIpAddress { get; set; } + + /// The end IP address of the firewall rule (IPv4). + public string EndIpAddress { get; set; } + + /// The description of the HorizonDb firewall rule. + public string Description { get; set; } + + /// The provisioning state of the firewall rule. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..1b5a5886ee51 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbParameterGroupConnectionProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionProperties 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 DeserializeHorizonDbParameterGroupConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupConnectionProperties)} 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(HorizonDbParameterGroupConnectionProperties)} 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. + HorizonDbParameterGroupConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbParameterGroupConnectionProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W" && Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W" && Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionProperties 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(HorizonDbParameterGroupConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupConnectionProperties DeserializeHorizonDbParameterGroupConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + ResourceIdentifier id = default; + string @type = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("id"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("type"u8)) + { + @type = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupConnectionProperties(name, id, @type, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs new file mode 100644 index 000000000000..aa7ca2c5f846 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbParameterGroupConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbParameterGroupConnectionProperties() + { + } + + /// Initializes a new instance of . + /// The name of the connected resource. + /// The resource ID of the connected resource. + /// The type of the resource. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupConnectionProperties(string name, ResourceIdentifier id, string @type, IDictionary additionalBinaryDataProperties) + { + Name = name; + Id = id; + Type = @type; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The name of the connected resource. + public string Name { get; } + + /// The resource ID of the connected resource. + public ResourceIdentifier Id { get; } + + /// The type of the resource. + public string Type { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs new file mode 100644 index 000000000000..1932f4d0447f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbParameterGroupConnectionProperties list operation. + internal partial class HorizonDbParameterGroupConnectionPropertiesListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbParameterGroupConnectionPropertiesListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionPropertiesListResult 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 DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupConnectionPropertiesListResult)} 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(HorizonDbParameterGroupConnectionPropertiesListResult)} 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. + HorizonDbParameterGroupConnectionPropertiesListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbParameterGroupConnectionPropertiesListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(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 virtual 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(HorizonDbParameterGroupConnectionPropertiesListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbParameterGroupConnectionProperties item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupConnectionPropertiesListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionPropertiesListResult 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(HorizonDbParameterGroupConnectionPropertiesListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupConnectionPropertiesListResult DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbParameterGroupConnectionProperties.DeserializeHorizonDbParameterGroupConnectionProperties(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupConnectionPropertiesListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs new file mode 100644 index 000000000000..1fcea0f58404 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbParameterGroupConnectionProperties list operation. + internal partial class HorizonDbParameterGroupConnectionPropertiesListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbParameterGroupConnectionProperties items on this page. + internal HorizonDbParameterGroupConnectionPropertiesListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbParameterGroupConnectionProperties items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupConnectionPropertiesListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbParameterGroupConnectionProperties items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs new file mode 100644 index 000000000000..2f2432019001 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbParameterGroup list operation. + internal partial class HorizonDbParameterGroupListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbParameterGroupListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupListResult 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 DeserializeHorizonDbParameterGroupListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupListResult)} 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(HorizonDbParameterGroupListResult)} 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. + HorizonDbParameterGroupListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbParameterGroupListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbParameterGroupListResult(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 virtual 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(HorizonDbParameterGroupListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbParameterGroupData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupListResult 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(HorizonDbParameterGroupListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupListResult DeserializeHorizonDbParameterGroupListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.cs new file mode 100644 index 000000000000..4dbe8dc14dac --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbParameterGroup list operation. + internal partial class HorizonDbParameterGroupListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbParameterGroup items on this page. + internal HorizonDbParameterGroupListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbParameterGroup items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbParameterGroup items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs new file mode 100644 index 000000000000..8f0f47c82e5d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPatch : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPatch 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 DeserializeHorizonDbParameterGroupPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupPatch)} 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(HorizonDbParameterGroupPatch)} 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. + HorizonDbParameterGroupPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbParameterGroupPatch horizonDbParameterGroupPatch) + { + if (horizonDbParameterGroupPatch == null) + { + return null; + } + return RequestContent.Create(horizonDbParameterGroupPatch, 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 virtual 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(HorizonDbParameterGroupPatch)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPatch 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(HorizonDbParameterGroupPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupPatch DeserializeHorizonDbParameterGroupPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + HorizonDbParameterGroupPropertiesForPatchUpdate properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbParameterGroupPropertiesForPatchUpdate.DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.cs new file mode 100644 index 000000000000..656a2d9b1b3e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbParameterGroupPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Resource tags. + /// The properties that can be updated for a HorizonDb parameter group. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupPatch(IDictionary tags, HorizonDbParameterGroupPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) + { + Tags = tags; + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Resource tags. + public IDictionary Tags { get; } + + /// The properties that can be updated for a HorizonDb parameter group. + public HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs new file mode 100644 index 000000000000..f5091eb2dfb8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs @@ -0,0 +1,233 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb parameter group. + public partial class HorizonDbParameterGroupProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupProperties 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 DeserializeHorizonDbParameterGroupProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupProperties)} 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(HorizonDbParameterGroupProperties)} 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. + HorizonDbParameterGroupProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbParameterGroupProperties)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"u8); + writer.WriteStartArray(); + foreach (ParameterProperties item in Parameters) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(PgVersion)) + { + writer.WritePropertyName("pgVersion"u8); + writer.WriteNumberValue(PgVersion.Value); + } + if (options.Format != "W" && Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteNumberValue(Version.Value); + } + if (Optional.IsDefined(ApplyImmediately)) + { + writer.WritePropertyName("applyImmediately"u8); + writer.WriteBooleanValue(ApplyImmediately.Value); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupProperties 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(HorizonDbParameterGroupProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterGroupProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList parameters = default; + string description = default; + int? pgVersion = default; + int? version = default; + bool? applyImmediately = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("parameters"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); + } + parameters = array; + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("pgVersion"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pgVersion = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("version"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + version = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("applyImmediately"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applyImmediately = prop.Value.GetBoolean(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupProperties( + parameters ?? new ChangeTrackingList(), + description, + pgVersion, + version, + applyImmediately, + provisioningState, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.cs new file mode 100644 index 000000000000..48f0b8ebf353 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb parameter group. + public partial class HorizonDbParameterGroupProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbParameterGroupProperties() + { + Parameters = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupProperties(IList parameters, string description, int? pgVersion, int? version, bool? applyImmediately, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + Parameters = parameters; + Description = description; + PgVersion = pgVersion; + Version = version; + ApplyImmediately = applyImmediately; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Parameters in the parameter group. + public IList Parameters { get; } + + /// Description of the parameter group. + public string Description { get; set; } + + /// PostgreSQL version for the parameter group. + public int? PgVersion { get; set; } + + /// Current version of the parameter group. + public int? Version { get; } + + /// Indicates whether the parameters should be applied immediately. + public bool? ApplyImmediately { get; set; } + + /// The provisioning state of the parameter group. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs new file mode 100644 index 000000000000..05c13a4d6964 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPropertiesForPatchUpdate 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 DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupPropertiesForPatchUpdate)} 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} 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. + HorizonDbParameterGroupPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"u8); + writer.WriteStartArray(); + foreach (ParameterProperties item in Parameters) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(ApplyImmediately)) + { + writer.WritePropertyName("applyImmediately"u8); + writer.WriteBooleanValue(ApplyImmediately.Value); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPropertiesForPatchUpdate 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupPropertiesForPatchUpdate DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList parameters = default; + string description = default; + bool? applyImmediately = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("parameters"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); + } + parameters = array; + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("applyImmediately"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applyImmediately = prop.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupPropertiesForPatchUpdate(parameters ?? new ChangeTrackingList(), description, applyImmediately, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs new file mode 100644 index 000000000000..3ce70681b7f4 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbParameterGroupPropertiesForPatchUpdate() + { + Parameters = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Parameters in the parameter group. + /// Description of the parameter group. + /// Indicates whether the parameters should be applied immediately. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupPropertiesForPatchUpdate(IList parameters, string description, bool? applyImmediately, IDictionary additionalBinaryDataProperties) + { + Parameters = parameters; + Description = description; + ApplyImmediately = applyImmediately; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Parameters in the parameter group. + public IList Parameters { get; } + + /// Description of the parameter group. + public string Description { get; set; } + + /// Indicates whether the parameters should be applied immediately. + public bool? ApplyImmediately { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs new file mode 100644 index 000000000000..549ca89f7691 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbPool list operation. + internal partial class HorizonDbPoolListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbPoolListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolListResult 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 DeserializeHorizonDbPoolListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPoolListResult)} 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(HorizonDbPoolListResult)} 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. + HorizonDbPoolListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPoolListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPoolListResult(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 virtual 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(HorizonDbPoolListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbPoolData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPoolListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolListResult 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(HorizonDbPoolListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPoolListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPoolListResult DeserializeHorizonDbPoolListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbPoolData.DeserializeHorizonDbPoolData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPoolListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.cs new file mode 100644 index 000000000000..f48529dcec55 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbPool list operation. + internal partial class HorizonDbPoolListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbPool items on this page. + internal HorizonDbPoolListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbPool items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPoolListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbPool items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs new file mode 100644 index 000000000000..58f5a3384c6f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs @@ -0,0 +1,224 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb pool. + public partial class HorizonDbPoolProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolProperties 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 DeserializeHorizonDbPoolProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPoolProperties)} 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(HorizonDbPoolProperties)} 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. + HorizonDbPoolProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbPoolProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location.Value); + } + if (options.Format != "W" && Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ReplicaCount)) + { + writer.WritePropertyName("replicaCount"u8); + writer.WriteNumberValue(ReplicaCount.Value); + } + if (options.Format != "W" && Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (options.Format != "W" && Optional.IsDefined(CreateMode)) + { + writer.WritePropertyName("createMode"u8); + writer.WriteStringValue(CreateMode.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPoolProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolProperties 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(HorizonDbPoolProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPoolProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AzureLocation? location = default; + State? state = default; + int? replicaCount = default; + string version = default; + CreateModePool? createMode = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("location"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = new AzureLocation(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("state"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new State(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("replicaCount"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicaCount = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("version"u8)) + { + version = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("createMode"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createMode = new CreateModePool(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPoolProperties( + location, + state, + replicaCount, + version, + createMode, + provisioningState, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.cs new file mode 100644 index 000000000000..5ad8f3fcfa5a --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb pool. + public partial class HorizonDbPoolProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPoolProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPoolProperties(AzureLocation? location, State? state, int? replicaCount, string version, CreateModePool? createMode, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + Location = location; + State = state; + ReplicaCount = replicaCount; + Version = version; + CreateMode = createMode; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The location of the HorizonDb pool. + public AzureLocation? Location { get; } + + /// Current state of the pool. + public State? State { get; } + + /// Number of replicas in the pool. + public int? ReplicaCount { get; } + + /// The version of the HorizonDb pool. + public string Version { get; } + + /// The create mode for the pool. + public CreateModePool? CreateMode { get; } + + /// The provisioning state of the pool. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs new file mode 100644 index 000000000000..ed1bdd29030d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs @@ -0,0 +1,184 @@ +// 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; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The private endpoint connection resource. + public partial class HorizonDbPrivateEndpointConnection : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnection)} 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(HorizonDbPrivateEndpointConnection)} 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. + HorizonDbPrivateEndpointConnection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPrivateEndpointConnection)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPrivateEndpointConnection FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPrivateEndpointConnection(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(HorizonDbPrivateEndpointConnection)} 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. + HorizonDbPrivateEndpointConnection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPrivateEndpointConnection)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(HorizonDbPrivateEndpointConnection)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateEndpointConnection DeserializeHorizonDbPrivateEndpointConnection(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(); + PrivateEndpointConnectionProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateEndpointConnection( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs new file mode 100644 index 000000000000..51355c03ec7c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The private endpoint connection resource. + public partial class HorizonDbPrivateEndpointConnection : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPrivateEndpointConnection() + { + } + + /// 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. + /// The private endpoint connection properties. + internal HorizonDbPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The private endpoint connection properties. + public PrivateEndpointConnectionProperties Properties { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 000000000000..9e4439e8cdfb --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The current provisioning state. + public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : IEquatable + { + private readonly string _value; + /// Connection has been provisioned. + private const string SucceededValue = "Succeeded"; + /// Connection is being created. + private const string CreatingValue = "Creating"; + /// Connection is being deleted. + private const string DeletingValue = "Deleting"; + /// Connection provisioning has failed. + private const string FailedValue = "Failed"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public HorizonDbPrivateEndpointConnectionProvisioningState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Connection has been provisioned. + public static HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(SucceededValue); + + /// Connection is being created. + public static HorizonDbPrivateEndpointConnectionProvisioningState Creating { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(CreatingValue); + + /// Connection is being deleted. + public static HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(DeletingValue); + + /// Connection provisioning has failed. + public static HorizonDbPrivateEndpointConnectionProvisioningState Failed { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(FailedValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(HorizonDbPrivateEndpointConnectionProvisioningState left, HorizonDbPrivateEndpointConnectionProvisioningState right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(HorizonDbPrivateEndpointConnectionProvisioningState left, HorizonDbPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDbPrivateEndpointConnectionProvisioningState(string value) => new HorizonDbPrivateEndpointConnectionProvisioningState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDbPrivateEndpointConnectionProvisioningState?(string value) => value == null ? null : new HorizonDbPrivateEndpointConnectionProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HorizonDbPrivateEndpointConnectionProvisioningState other && Equals(other); + + /// + public bool Equals(HorizonDbPrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..a2fc6c15f2a4 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The private endpoint connection status. + public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : IEquatable + { + private readonly string _value; + /// Connection waiting for approval or rejection. + private const string PendingValue = "Pending"; + /// Connection approved. + private const string ApprovedValue = "Approved"; + /// Connection Rejected. + private const string RejectedValue = "Rejected"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public HorizonDbPrivateEndpointServiceConnectionStatus(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Connection waiting for approval or rejection. + public static HorizonDbPrivateEndpointServiceConnectionStatus Pending { get; } = new HorizonDbPrivateEndpointServiceConnectionStatus(PendingValue); + + /// Connection approved. + public static HorizonDbPrivateEndpointServiceConnectionStatus Approved { get; } = new HorizonDbPrivateEndpointServiceConnectionStatus(ApprovedValue); + + /// Connection Rejected. + public static HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get; } = new HorizonDbPrivateEndpointServiceConnectionStatus(RejectedValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(HorizonDbPrivateEndpointServiceConnectionStatus left, HorizonDbPrivateEndpointServiceConnectionStatus right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(HorizonDbPrivateEndpointServiceConnectionStatus left, HorizonDbPrivateEndpointServiceConnectionStatus right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDbPrivateEndpointServiceConnectionStatus(string value) => new HorizonDbPrivateEndpointServiceConnectionStatus(value); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDbPrivateEndpointServiceConnectionStatus?(string value) => value == null ? null : new HorizonDbPrivateEndpointServiceConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HorizonDbPrivateEndpointServiceConnectionStatus other && Equals(other); + + /// + public bool Equals(HorizonDbPrivateEndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs new file mode 100644 index 000000000000..351ba16ec3b2 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbPrivateLinkResource list operation. + internal partial class HorizonDbPrivateLinkResourceListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbPrivateLinkResourceListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkResourceListResult 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 DeserializeHorizonDbPrivateLinkResourceListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceListResult)} 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(HorizonDbPrivateLinkResourceListResult)} 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. + HorizonDbPrivateLinkResourceListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPrivateLinkResourceListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPrivateLinkResourceListResult(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 virtual 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(HorizonDbPrivateLinkResourceListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbPrivateLinkResourceData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPrivateLinkResourceListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkResourceListResult 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(HorizonDbPrivateLinkResourceListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateLinkResourceListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateLinkResourceListResult DeserializeHorizonDbPrivateLinkResourceListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbPrivateLinkResourceData.DeserializeHorizonDbPrivateLinkResourceData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateLinkResourceListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs new file mode 100644 index 000000000000..210fedf6c46f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbPrivateLinkResource list operation. + internal partial class HorizonDbPrivateLinkResourceListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbPrivateLinkResource items on this page. + internal HorizonDbPrivateLinkResourceListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbPrivateLinkResource items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPrivateLinkResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbPrivateLinkResource items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs new file mode 100644 index 000000000000..137f6ffa2d22 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs @@ -0,0 +1,215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a private link resource. + public partial class HorizonDbPrivateLinkResourceProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkResourceProperties 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 DeserializeHorizonDbPrivateLinkResourceProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceProperties)} 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(HorizonDbPrivateLinkResourceProperties)} 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. + HorizonDbPrivateLinkResourceProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbPrivateLinkResourceProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(GroupId)) + { + writer.WritePropertyName("groupId"u8); + writer.WriteStringValue(GroupId); + } + if (options.Format != "W" && Optional.IsCollectionDefined(RequiredMembers)) + { + writer.WritePropertyName("requiredMembers"u8); + writer.WriteStartArray(); + foreach (string item in RequiredMembers) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(RequiredZoneNames)) + { + writer.WritePropertyName("requiredZoneNames"u8); + writer.WriteStartArray(); + foreach (string item in RequiredZoneNames) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPrivateLinkResourceProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkResourceProperties 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(HorizonDbPrivateLinkResourceProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateLinkResourceProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateLinkResourceProperties DeserializeHorizonDbPrivateLinkResourceProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string groupId = default; + IReadOnlyList requiredMembers = default; + IList requiredZoneNames = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("groupId"u8)) + { + groupId = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("requiredMembers"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + requiredMembers = array; + continue; + } + if (prop.NameEquals("requiredZoneNames"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + requiredZoneNames = array; + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateLinkResourceProperties(groupId, requiredMembers ?? new ChangeTrackingList(), requiredZoneNames ?? new ChangeTrackingList(), additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs new file mode 100644 index 000000000000..5e5e84626b6e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a private link resource. + public partial class HorizonDbPrivateLinkResourceProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPrivateLinkResourceProperties() + { + RequiredMembers = new ChangeTrackingList(); + RequiredZoneNames = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource private link DNS zone name. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPrivateLinkResourceProperties(string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames, IDictionary additionalBinaryDataProperties) + { + GroupId = groupId; + RequiredMembers = requiredMembers; + RequiredZoneNames = requiredZoneNames; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The private link resource group id. + public string GroupId { get; } + + /// The private link resource required member names. + public IReadOnlyList RequiredMembers { get; } + + /// The private link resource private link DNS zone name. + public IList RequiredZoneNames { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs new file mode 100644 index 000000000000..ff5ba98c3197 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// A collection of information about the state of the connection between service consumer and provider. + public partial class HorizonDbPrivateLinkServiceConnectionState : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkServiceConnectionState 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 DeserializeHorizonDbPrivateLinkServiceConnectionState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateLinkServiceConnectionState)} 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(HorizonDbPrivateLinkServiceConnectionState)} 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. + HorizonDbPrivateLinkServiceConnectionState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbPrivateLinkServiceConnectionState)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(ActionsRequired)) + { + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPrivateLinkServiceConnectionState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkServiceConnectionState 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(HorizonDbPrivateLinkServiceConnectionState)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateLinkServiceConnectionState(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateLinkServiceConnectionState DeserializeHorizonDbPrivateLinkServiceConnectionState(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + HorizonDbPrivateEndpointServiceConnectionStatus? status = default; + string description = default; + string actionsRequired = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("status"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new HorizonDbPrivateEndpointServiceConnectionStatus(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("actionsRequired"u8)) + { + actionsRequired = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateLinkServiceConnectionState(status, description, actionsRequired, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs new file mode 100644 index 000000000000..7db55527fa52 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.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; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// A collection of information about the state of the connection between service consumer and provider. + public partial class HorizonDbPrivateLinkServiceConnectionState + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbPrivateLinkServiceConnectionState() + { + } + + /// Initializes a new instance of . + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + /// The reason for approval/rejection of the connection. + /// A message indicating if changes on the service provider require any updates on the consumer. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPrivateLinkServiceConnectionState(HorizonDbPrivateEndpointServiceConnectionStatus? status, string description, string actionsRequired, IDictionary additionalBinaryDataProperties) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + public HorizonDbPrivateEndpointServiceConnectionStatus? Status { get; set; } + + /// The reason for approval/rejection of the connection. + public string Description { get; set; } + + /// A message indicating if changes on the service provider require any updates on the consumer. + public string ActionsRequired { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs new file mode 100644 index 000000000000..59ae4ffb01ad --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbReplica list operation. + internal partial class HorizonDbReplicaListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbReplicaListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaListResult 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 DeserializeHorizonDbReplicaListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaListResult)} 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(HorizonDbReplicaListResult)} 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. + HorizonDbReplicaListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbReplicaListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbReplicaListResult(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 virtual 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(HorizonDbReplicaListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbReplicaData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaListResult 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(HorizonDbReplicaListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaListResult DeserializeHorizonDbReplicaListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbReplicaData.DeserializeHorizonDbReplicaData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.cs new file mode 100644 index 000000000000..9bbdf2498e53 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a HorizonDbReplica list operation. + internal partial class HorizonDbReplicaListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbReplica items on this page. + internal HorizonDbReplicaListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbReplica items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbReplica items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs new file mode 100644 index 000000000000..729f0c7cff02 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// HorizonDb replica for update operations. + public partial class HorizonDbReplicaPatch : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPatch 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 DeserializeHorizonDbReplicaPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaPatch)} 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(HorizonDbReplicaPatch)} 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. + HorizonDbReplicaPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbReplicaPatch horizonDbReplicaPatch) + { + if (horizonDbReplicaPatch == null) + { + return null; + } + return RequestContent.Create(horizonDbReplicaPatch, 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 virtual 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(HorizonDbReplicaPatch)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPatch 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(HorizonDbReplicaPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaPatch DeserializeHorizonDbReplicaPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + HorizonDbReplicaPropertiesForPatchUpdate properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbReplicaPropertiesForPatchUpdate.DeserializeHorizonDbReplicaPropertiesForPatchUpdate(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaPatch(properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.cs new file mode 100644 index 000000000000..a627aef9a9c0 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// HorizonDb replica for update operations. + public partial class HorizonDbReplicaPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaPatch() + { + } + + /// Initializes a new instance of . + /// Properties of a HorizonDb replica for update operations. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaPatch(HorizonDbReplicaPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Properties of a HorizonDb replica for update operations. + internal HorizonDbReplicaPropertiesForPatchUpdate Properties { get; set; } + + /// Role of the replica. + public ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole + { + get + { + return Properties is null ? default : Properties.Role; + } + set + { + if (Properties is null) + { + Properties = new HorizonDbReplicaPropertiesForPatchUpdate(); + } + Properties.Role = value; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs new file mode 100644 index 000000000000..4dd01861084e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb replica. + public partial class HorizonDbReplicaProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaProperties 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 DeserializeHorizonDbReplicaProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaProperties)} 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(HorizonDbReplicaProperties)} 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. + HorizonDbReplicaProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbReplicaProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Role)) + { + writer.WritePropertyName("role"u8); + writer.WriteStringValue(Role.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(FullyQualifiedDomainName)) + { + writer.WritePropertyName("fullyQualifiedDomainName"u8); + writer.WriteStringValue(FullyQualifiedDomainName); + } + if (Optional.IsDefined(AvailabilityZone)) + { + writer.WritePropertyName("availabilityZone"u8); + writer.WriteStringValue(AvailabilityZone); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaProperties 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(HorizonDbReplicaProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ReplicaRole? role = default; + State? status = default; + string fullyQualifiedDomainName = default; + string availabilityZone = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("role"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + role = new ReplicaRole(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("status"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new State(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("fullyQualifiedDomainName"u8)) + { + fullyQualifiedDomainName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("availabilityZone"u8)) + { + availabilityZone = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaProperties( + role, + status, + fullyQualifiedDomainName, + availabilityZone, + provisioningState, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.cs new file mode 100644 index 000000000000..2d0b0552514b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb replica. + public partial class HorizonDbReplicaProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaProperties(ReplicaRole? role, State? status, string fullyQualifiedDomainName, string availabilityZone, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + Role = role; + Status = status; + FullyQualifiedDomainName = fullyQualifiedDomainName; + AvailabilityZone = availabilityZone; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Role of the replica. + public ReplicaRole? Role { get; set; } + + /// Current status of the replica. + public State? Status { get; } + + /// The fully qualified domain name of the replica. + public string FullyQualifiedDomainName { get; } + + /// The availability zone of the replica. + public string AvailabilityZone { get; set; } + + /// The provisioning state of the replica. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs new file mode 100644 index 000000000000..9bc7b8813612 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb replica for update operations. + internal partial class HorizonDbReplicaPropertiesForPatchUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPropertiesForPatchUpdate 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 DeserializeHorizonDbReplicaPropertiesForPatchUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaPropertiesForPatchUpdate)} 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(HorizonDbReplicaPropertiesForPatchUpdate)} 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. + HorizonDbReplicaPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbReplicaPropertiesForPatchUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Role)) + { + writer.WritePropertyName("role"u8); + writer.WriteStringValue(Role.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPropertiesForPatchUpdate 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(HorizonDbReplicaPropertiesForPatchUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaPropertiesForPatchUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaPropertiesForPatchUpdate DeserializeHorizonDbReplicaPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ReplicaRole? role = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("role"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + role = new ReplicaRole(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaPropertiesForPatchUpdate(role, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs new file mode 100644 index 000000000000..970b302625f7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb replica for update operations. + internal partial class HorizonDbReplicaPropertiesForPatchUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaPropertiesForPatchUpdate() + { + } + + /// Initializes a new instance of . + /// Role of the replica. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaPropertiesForPatchUpdate(ReplicaRole? role, IDictionary additionalBinaryDataProperties) + { + Role = role; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Role of the replica. + public ReplicaRole? Role { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.Serialization.cs new file mode 100644 index 000000000000..54cf1da5643b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.Serialization.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Network properties. + internal partial class Network : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual Network 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 DeserializeNetwork(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(Network)} 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(Network)} 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. + Network IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(Network)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(PublicNetworkAccess)) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + Network IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual Network 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(Network)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNetwork(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static Network DeserializeNetwork(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + PublicNetworkAccessState? publicNetworkAccess = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("publicNetworkAccess"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publicNetworkAccess = new PublicNetworkAccessState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new Network(publicNetworkAccess, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.cs new file mode 100644 index 000000000000..577a48d963f7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Network properties. + internal partial class Network + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public Network() + { + } + + /// Initializes a new instance of . + /// The flag indicating whether public ip is requested. + /// Keeps track of any properties unknown to the library. + internal Network(PublicNetworkAccessState? publicNetworkAccess, IDictionary additionalBinaryDataProperties) + { + PublicNetworkAccess = publicNetworkAccess; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The flag indicating whether public ip is requested. + public PublicNetworkAccessState? PublicNetworkAccess { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs new file mode 100644 index 000000000000..b1d58a09043f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The template for adding optional properties. + public partial class OptionalPropertiesUpdateableProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual OptionalPropertiesUpdateableProperties 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 DeserializeOptionalPropertiesUpdateableProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(OptionalPropertiesUpdateableProperties)} 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(OptionalPropertiesUpdateableProperties)} 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. + OptionalPropertiesUpdateableProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(OptionalPropertiesUpdateableProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(PrivateEndpoint)) + { + writer.WritePropertyName("privateEndpoint"u8); + writer.WriteObjectValue(PrivateEndpoint, options); + } + if (Optional.IsDefined(PrivateLinkServiceConnectionState)) + { + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + OptionalPropertiesUpdateableProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual OptionalPropertiesUpdateableProperties 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(OptionalPropertiesUpdateableProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeOptionalPropertiesUpdateableProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static OptionalPropertiesUpdateableProperties DeserializeOptionalPropertiesUpdateableProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + PrivateEndpoint privateEndpoint = default; + HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("privateEndpoint"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(prop.Value, options); + continue; + } + if (prop.NameEquals("privateLinkServiceConnectionState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateLinkServiceConnectionState = HorizonDbPrivateLinkServiceConnectionState.DeserializeHorizonDbPrivateLinkServiceConnectionState(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new OptionalPropertiesUpdateableProperties(privateEndpoint, privateLinkServiceConnectionState, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs new file mode 100644 index 000000000000..64e854cc9f36 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The template for adding optional properties. + public partial class OptionalPropertiesUpdateableProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public OptionalPropertiesUpdateableProperties() + { + } + + /// Initializes a new instance of . + /// The private endpoint resource. + /// A collection of information about the state of the connection between service consumer and provider. + /// Keeps track of any properties unknown to the library. + internal OptionalPropertiesUpdateableProperties(PrivateEndpoint privateEndpoint, HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState, IDictionary additionalBinaryDataProperties) + { + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The private endpoint resource. + internal PrivateEndpoint PrivateEndpoint { get; set; } + + /// A collection of information about the state of the connection between service consumer and provider. + public HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + + /// The resource identifier of the private endpoint. + public ResourceIdentifier PrivateEndpointId + { + get + { + return PrivateEndpoint is null ? default : PrivateEndpoint.Id; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.Serialization.cs new file mode 100644 index 000000000000..3035647b5116 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.Serialization.cs @@ -0,0 +1,251 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb parameters. + public partial class ParameterProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ParameterProperties 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 DeserializeParameterProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ParameterProperties)} 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(ParameterProperties)} 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. + ParameterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(ParameterProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W" && Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (options.Format != "W" && Optional.IsDefined(DataType)) + { + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType); + } + if (options.Format != "W" && Optional.IsDefined(AllowedValues)) + { + writer.WritePropertyName("allowedValues"u8); + writer.WriteStringValue(AllowedValues); + } + if (options.Format != "W" && Optional.IsDefined(IsDynamic)) + { + writer.WritePropertyName("isDynamic"u8); + writer.WriteBooleanValue(IsDynamic.Value); + } + if (options.Format != "W" && Optional.IsDefined(IsReadOnly)) + { + writer.WritePropertyName("isReadOnly"u8); + writer.WriteBooleanValue(IsReadOnly.Value); + } + if (options.Format != "W" && Optional.IsDefined(DocumentationLink)) + { + writer.WritePropertyName("documentationLink"u8); + writer.WriteStringValue(DocumentationLink.AbsoluteUri); + } + if (options.Format != "W" && Optional.IsDefined(Unit)) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + ParameterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ParameterProperties 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(ParameterProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeParameterProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ParameterProperties DeserializeParameterProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + 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; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("value"u8)) + { + value = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("dataType"u8)) + { + dataType = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("allowedValues"u8)) + { + allowedValues = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("isDynamic"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDynamic = prop.Value.GetBoolean(); + continue; + } + if (prop.NameEquals("isReadOnly"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isReadOnly = prop.Value.GetBoolean(); + continue; + } + if (prop.NameEquals("documentationLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + documentationLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (prop.NameEquals("unit"u8)) + { + unit = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new ParameterProperties( + name, + description, + value, + dataType, + allowedValues, + isDynamic, + isReadOnly, + documentationLink, + unit, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.cs new file mode 100644 index 000000000000..7d1b0d989d59 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of a HorizonDb parameters. + public partial class ParameterProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public ParameterProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal ParameterProperties(string name, string description, string value, string dataType, string allowedValues, bool? isDynamic, bool? isReadOnly, Uri documentationLink, string unit, IDictionary additionalBinaryDataProperties) + { + Name = name; + Description = description; + Value = value; + DataType = dataType; + AllowedValues = allowedValues; + IsDynamic = isDynamic; + IsReadOnly = isReadOnly; + DocumentationLink = documentationLink; + Unit = unit; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The name of the parameter. + public string Name { get; set; } + + /// The description of the parameter. + public string Description { get; } + + /// The value of the configuration. + public string Value { get; set; } + + /// The data type of the parameter. + public string DataType { get; } + + /// The allowed values for the parameter. + public string AllowedValues { get; } + + /// Whether the parameter can be changed dynamically. + public bool? IsDynamic { get; } + + /// Whether the parameter is a read-only parameter. + public bool? IsReadOnly { get; } + + /// Link to parameter documentation. + public Uri DocumentationLink { get; } + + /// The unit of measurement for the parameter. + public string Unit { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.Serialization.cs new file mode 100644 index 000000000000..ef6052db20db --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.Serialization.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The private endpoint resource. + internal partial class PrivateEndpoint : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpoint 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 DeserializePrivateEndpoint(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpoint)} 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(PrivateEndpoint)} 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. + PrivateEndpoint IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(PrivateEndpoint)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpoint 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(PrivateEndpoint)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpoint(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + 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 (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpoint(id, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.cs new file mode 100644 index 000000000000..0cd75b315227 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The private endpoint resource. + internal partial class PrivateEndpoint + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public PrivateEndpoint() + { + } + + /// Initializes a new instance of . + /// The resource identifier of the private endpoint. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpoint(ResourceIdentifier id, IDictionary additionalBinaryDataProperties) + { + Id = id; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The resource identifier of the private endpoint. + public ResourceIdentifier Id { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..6992d93c3b22 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs @@ -0,0 +1,210 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of the private endpoint connection. + public partial class PrivateEndpointConnectionProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal PrivateEndpointConnectionProperties() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionProperties 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 DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionProperties)} 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(PrivateEndpointConnectionProperties)} 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. + PrivateEndpointConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(PrivateEndpointConnectionProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (string item in GroupIds) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(PrivateEndpoint)) + { + writer.WritePropertyName("privateEndpoint"u8); + writer.WriteObjectValue(PrivateEndpoint, options); + } + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpointConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionProperties 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(PrivateEndpointConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionProperties DeserializePrivateEndpointConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList groupIds = default; + PrivateEndpoint privateEndpoint = default; + HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("groupIds"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + groupIds = array; + continue; + } + if (prop.NameEquals("privateEndpoint"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(prop.Value, options); + continue; + } + if (prop.NameEquals("privateLinkServiceConnectionState"u8)) + { + privateLinkServiceConnectionState = HorizonDbPrivateLinkServiceConnectionState.DeserializeHorizonDbPrivateLinkServiceConnectionState(prop.Value, options); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new HorizonDbPrivateEndpointConnectionProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionProperties(groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.cs new file mode 100644 index 000000000000..8b2636254f6f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -0,0 +1,65 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Properties of the private endpoint connection. + public partial class PrivateEndpointConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// A collection of information about the state of the connection between service consumer and provider. + internal PrivateEndpointConnectionProperties(HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + { + GroupIds = new ChangeTrackingList(); + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + } + + /// Initializes a new instance of . + /// The group ids for the private endpoint resource. + /// The private endpoint resource. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionProperties(IReadOnlyList groupIds, PrivateEndpoint privateEndpoint, HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState, HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + GroupIds = groupIds; + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The group ids for the private endpoint resource. + public IReadOnlyList GroupIds { get; } + + /// The private endpoint resource. + internal PrivateEndpoint PrivateEndpoint { get; } + + /// A collection of information about the state of the connection between service consumer and provider. + public HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; } + + /// The provisioning state of the private endpoint connection resource. + public HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + + /// The resource identifier of the private endpoint. + public ResourceIdentifier PrivateEndpointId + { + get + { + return PrivateEndpoint.Id; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs new file mode 100644 index 000000000000..48ab6b834230 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a PrivateEndpointConnectionResource list operation. + internal partial class PrivateEndpointConnectionResourceListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal PrivateEndpointConnectionResourceListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionResourceListResult 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 DeserializePrivateEndpointConnectionResourceListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceListResult)} 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(PrivateEndpointConnectionResourceListResult)} 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. + PrivateEndpointConnectionResourceListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static PrivateEndpointConnectionResourceListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePrivateEndpointConnectionResourceListResult(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 virtual 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(PrivateEndpointConnectionResourceListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (PrivateEndpointConnectionResourceData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpointConnectionResourceListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionResourceListResult 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(PrivateEndpointConnectionResourceListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionResourceListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionResourceListResult DeserializePrivateEndpointConnectionResourceListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionResourceListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs new file mode 100644 index 000000000000..4b7dd0430f0d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The response of a PrivateEndpointConnectionResource list operation. + internal partial class PrivateEndpointConnectionResourceListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The PrivateEndpointConnectionResource items on this page. + internal PrivateEndpointConnectionResourceListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The PrivateEndpointConnectionResource items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The PrivateEndpointConnectionResource items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs new file mode 100644 index 000000000000..2e918ff45c13 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// PATCH model for private endpoint connections. + public partial class PrivateEndpointConnectionUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionUpdate 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 DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionUpdate)} 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(PrivateEndpointConnectionUpdate)} 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. + PrivateEndpointConnectionUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(PrivateEndpointConnectionUpdate privateEndpointConnectionUpdate) + { + if (privateEndpointConnectionUpdate == null) + { + return null; + } + return RequestContent.Create(privateEndpointConnectionUpdate, 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 virtual 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(PrivateEndpointConnectionUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpointConnectionUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionUpdate 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(PrivateEndpointConnectionUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionUpdate DeserializePrivateEndpointConnectionUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + OptionalPropertiesUpdateableProperties properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = OptionalPropertiesUpdateableProperties.DeserializeOptionalPropertiesUpdateableProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionUpdate(properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.cs new file mode 100644 index 000000000000..ab799a814eb1 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// PATCH model for private endpoint connections. + public partial class PrivateEndpointConnectionUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public PrivateEndpointConnectionUpdate() + { + } + + /// Initializes a new instance of . + /// The private endpoint connection properties. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionUpdate(OptionalPropertiesUpdateableProperties properties, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The private endpoint connection properties. + public OptionalPropertiesUpdateableProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..df75f3546fc7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The provisioning state. + public readonly partial struct ProvisioningState : IEquatable + { + private readonly string _value; + /// Provisioning completed successfully. + private const string SucceededValue = "Succeeded"; + /// Provisioning failed. + private const string FailedValue = "Failed"; + /// Provisioning was canceled. + private const string CanceledValue = "Canceled"; + /// Provisioning is in progress. + private const string InProgressValue = "InProgress"; + /// Provisioning is in progress. + private const string ProvisioningValue = "Provisioning"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ProvisioningState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Provisioning completed successfully. + public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); + + /// Provisioning failed. + public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); + + /// Provisioning was canceled. + public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); + + /// Provisioning is in progress. + public static ProvisioningState InProgress { get; } = new ProvisioningState(InProgressValue); + + /// Provisioning is in progress. + public static ProvisioningState Provisioning { get; } = new ProvisioningState(ProvisioningValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ProvisioningState?(string value) => value == null ? null : new ProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); + + /// + public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PublicNetworkAccessState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PublicNetworkAccessState.cs new file mode 100644 index 000000000000..1e89750485a2 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PublicNetworkAccessState.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Indicates if public network access is enabled or not. + public readonly partial struct PublicNetworkAccessState : IEquatable + { + private readonly string _value; + /// Public network access is enabled. + private const string EnabledValue = "Enabled"; + /// Public network access is disabled. + private const string DisabledValue = "Disabled"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public PublicNetworkAccessState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Public network access is enabled. + public static PublicNetworkAccessState Enabled { get; } = new PublicNetworkAccessState(EnabledValue); + + /// Public network access is disabled. + public static PublicNetworkAccessState Disabled { get; } = new PublicNetworkAccessState(DisabledValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(PublicNetworkAccessState left, PublicNetworkAccessState right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(PublicNetworkAccessState left, PublicNetworkAccessState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator PublicNetworkAccessState(string value) => new PublicNetworkAccessState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator PublicNetworkAccessState?(string value) => value == null ? null : new PublicNetworkAccessState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PublicNetworkAccessState other && Equals(other); + + /// + public bool Equals(PublicNetworkAccessState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ReplicaRole.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ReplicaRole.cs new file mode 100644 index 000000000000..333d760e3e66 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ReplicaRole.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Role of the replica. + public readonly partial struct ReplicaRole : IEquatable + { + private readonly string _value; + /// Read-only replica. + private const string ReadValue = "Read"; + /// ReadWrite replica. + private const string ReadWriteValue = "ReadWrite"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ReplicaRole(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Read-only replica. + public static ReplicaRole Read { get; } = new ReplicaRole(ReadValue); + + /// ReadWrite replica. + public static ReplicaRole ReadWrite { get; } = new ReplicaRole(ReadWriteValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ReplicaRole left, ReplicaRole right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ReplicaRole left, ReplicaRole right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ReplicaRole(string value) => new ReplicaRole(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ReplicaRole?(string value) => value == null ? null : new ReplicaRole(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ReplicaRole other && Equals(other); + + /// + public bool Equals(ReplicaRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/State.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/State.cs new file mode 100644 index 000000000000..2ea70b01249b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/State.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// Current states. + public readonly partial struct State : IEquatable + { + private readonly string _value; + /// Is ready and operational. + private const string ReadyValue = "Ready"; + /// Is being dropped/deleted. + private const string DroppingValue = "Dropping"; + /// Is disabled. + private const string DisabledValue = "Disabled"; + /// Is starting up. + private const string StartingValue = "Starting"; + /// Is stopping. + private const string StoppingValue = "Stopping"; + /// Is stopped. + private const string StoppedValue = "Stopped"; + /// Is being updated. + private const string UpdatingValue = "Updating"; + /// Is healthy. + private const string HealthyValue = "Healthy"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public State(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Is ready and operational. + public static State Ready { get; } = new State(ReadyValue); + + /// Is being dropped/deleted. + public static State Dropping { get; } = new State(DroppingValue); + + /// Is disabled. + public static State Disabled { get; } = new State(DisabledValue); + + /// Is starting up. + public static State Starting { get; } = new State(StartingValue); + + /// Is stopping. + public static State Stopping { get; } = new State(StoppingValue); + + /// Is stopped. + public static State Stopped { get; } = new State(StoppedValue); + + /// Is being updated. + public static State Updating { get; } = new State(UpdatingValue); + + /// Is healthy. + public static State Healthy { get; } = new State(HealthyValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(State left, State right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(State left, State right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator State(string value) => new State(value); + + /// Converts a string to a . + /// The value. + public static implicit operator State?(string value) => value == null ? null : new State(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is State other && Equals(other); + + /// + public bool Equals(State other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ZonePlacementPolicy.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ZonePlacementPolicy.cs new file mode 100644 index 000000000000..eaea4466a7a7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ZonePlacementPolicy.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDb; + +namespace Azure.ResourceManager.HorizonDb.Models +{ + /// The zone redundancy option for the cluster. + public readonly partial struct ZonePlacementPolicy : IEquatable + { + private readonly string _value; + /// Enforce zonal redundancy. + private const string StrictValue = "Strict"; + /// Best-effort placement (default). + private const string BestEffortValue = "BestEffort"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ZonePlacementPolicy(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Enforce zonal redundancy. + public static ZonePlacementPolicy Strict { get; } = new ZonePlacementPolicy(StrictValue); + + /// Best-effort placement (default). + public static ZonePlacementPolicy BestEffort { get; } = new ZonePlacementPolicy(BestEffortValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ZonePlacementPolicy left, ZonePlacementPolicy right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ZonePlacementPolicy left, ZonePlacementPolicy right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ZonePlacementPolicy(string value) => new ZonePlacementPolicy(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ZonePlacementPolicy?(string value) => value == null ? null : new ZonePlacementPolicy(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ZonePlacementPolicy other && Equals(other); + + /// + public bool Equals(ZonePlacementPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..a97098e80a55 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.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 PrivateEndpointConnectionResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new PrivateEndpointConnectionResourceData(); + + /// 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. + PrivateEndpointConnectionResourceData 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. + PrivateEndpointConnectionResourceData 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/PrivateEndpointConnectionResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.cs new file mode 100644 index 000000000000..6bc8ca25f279 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDb +{ + /// + /// A class representing a PrivateEndpointConnectionResource 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 GetPrivateEndpointConnectionResources method. + /// + public partial class PrivateEndpointConnectionResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; + private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; + private readonly PrivateEndpointConnectionResourceData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/privateEndpointConnections"; + + /// Initializes a new instance of PrivateEndpointConnectionResource for mocking. + protected PrivateEndpointConnectionResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal PrivateEndpointConnectionResource(ArmClient client, PrivateEndpointConnectionResourceData 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 PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string privateEndpointConnectionResourceApiVersion); + _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); + _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "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 PrivateEndpointConnectionResourceData 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. + /// The privateEndpointConnectionName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}"; + 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), id); + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_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 = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceCollection.cs new file mode 100644 index 000000000000..56230c5554e9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceCollection.cs @@ -0,0 +1,463 @@ +// 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; + +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 GetPrivateEndpointConnectionResources method from an instance of . + /// + public partial class PrivateEndpointConnectionResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; + private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; + + /// Initializes a new instance of PrivateEndpointConnectionResourceCollection for mocking. + protected PrivateEndpointConnectionResourceCollection() + { + } + + /// 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 PrivateEndpointConnectionResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(PrivateEndpointConnectionResource.ResourceType, out string privateEndpointConnectionResourceApiVersion); + _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", PrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); + _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbClusterResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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> GetAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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 Response Get(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists private endpoint connections in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_List. + /// + /// + /// 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 HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new PrivateEndpointConnectionResource(Client, data)); + } + + /// + /// Lists private endpoint connections in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_List. + /// + /// + /// 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 HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new PrivateEndpointConnectionResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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> ExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)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}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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 Response Exists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)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}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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> GetIfExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(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}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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 NullableResponse GetIfExists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(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/PrivateEndpointConnectionResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs new file mode 100644 index 000000000000..31c98aef095a --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs @@ -0,0 +1,184 @@ +// 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 +{ + /// A private endpoint connection resource. + public partial class PrivateEndpointConnectionResourceData : ResourceData, IJsonModel + { + /// 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 DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceData)} 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(PrivateEndpointConnectionResourceData)} 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. + PrivateEndpointConnectionResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static PrivateEndpointConnectionResourceData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePrivateEndpointConnectionResourceData(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(PrivateEndpointConnectionResourceData)} 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. + PrivateEndpointConnectionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)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(PrivateEndpointConnectionResourceData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpointConnectionResourceData(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(); + PrivateEndpointConnectionProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionResourceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.cs new file mode 100644 index 000000000000..27886131558f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.cs @@ -0,0 +1,43 @@ +// 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 +{ + /// A private endpoint connection resource. + public partial class PrivateEndpointConnectionResourceData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal PrivateEndpointConnectionResourceData() + { + } + + /// 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. + /// The private endpoint connection properties. + internal PrivateEndpointConnectionResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The private endpoint connection properties. + public PrivateEndpointConnectionProperties Properties { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ProviderConstants.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ProviderConstants.cs new file mode 100644 index 000000000000..dee09802fe70 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ProviderConstants.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal static partial class ProviderConstants + { + /// Gets the DefaultProviderNamespace. + public static string DefaultProviderNamespace { get; } = ClientDiagnostics.GetResourceProviderNamespace(typeof(ProviderConstants).Assembly); + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs new file mode 100644 index 000000000000..fdf8c1f18ca5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs @@ -0,0 +1,221 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbClusters + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbClusters for mocking. + protected HorizonDbClusters() + { + } + + /// Initializes a new instance of HorizonDbClusters. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbClusters(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetByResourceGroupRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetByResourceGroupRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetBySubscriptionRequest(Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs new file mode 100644 index 000000000000..a40c5ac96033 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbFirewallRules + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbFirewallRules for mocking. + protected HorizonDbFirewallRules() + { + } + + /// Initializes a new instance of HorizonDbFirewallRules. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbFirewallRules(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs new file mode 100644 index 000000000000..cf2040bfa4a4 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs @@ -0,0 +1,317 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbParameterGroups + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbParameterGroups for mocking. + protected HorizonDbParameterGroups() + { + } + + /// Initializes a new instance of HorizonDbParameterGroups. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbParameterGroups(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetByResourceGroupRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetByResourceGroupRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetBySubscriptionRequest(Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetConnectionsRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + uri.AppendPath("/connections", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetConnectionsRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetVersionsRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + uri.AppendPath("/versions", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (version != null) + { + uri.AppendQuery("version", TypeFormatters.ConvertToString(version), true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetVersionsRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs new file mode 100644 index 000000000000..66b35da2f6cb --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbPools + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbPools for mocking. + protected HorizonDbPools() + { + } + + /// Initializes a new instance of HorizonDbPools. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbPools(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs new file mode 100644 index 000000000000..ccef45986788 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbPrivateEndpointConnections + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbPrivateEndpointConnections for mocking. + protected HorizonDbPrivateEndpointConnections() + { + } + + /// Initializes a new instance of HorizonDbPrivateEndpointConnections. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbPrivateEndpointConnections(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string privateEndpointConnectionName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string privateEndpointConnectionName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs new file mode 100644 index 000000000000..30b40cd21ee2 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbPrivateLinkResources + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbPrivateLinkResources for mocking. + protected HorizonDbPrivateLinkResources() + { + } + + /// Initializes a new instance of HorizonDbPrivateLinkResources. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbPrivateLinkResources(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string groupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs new file mode 100644 index 000000000000..45fe4868ae61 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDb +{ + internal partial class HorizonDbReplicas + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbReplicas for mocking. + protected HorizonDbReplicas() + { + } + + /// Initializes a new instance of HorizonDbReplicas. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbReplicas(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tsp-location.yaml b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tsp-location.yaml new file mode 100644 index 000000000000..17357b25b1ec --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tsp-location.yaml @@ -0,0 +1,6 @@ +directory: specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb +commit: f6e1fbd6268be7712bf96a516ba846f7d42e2baa +repo: Azure/azure-rest-api-specs +additionalDirectories: + +emitterPackageJsonPath: eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json \ No newline at end of file From 2cc8841f63f313acdd46eecfd91ecf70f8004216 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Tue, 31 Mar 2026 16:16:05 +0800 Subject: [PATCH 2/7] Add missing files for Azure.ResourceManager.HorizonDb package Add README.md, CHANGELOG.md, ci.mgmt.yml, test project, API listings, Directory.Build.props, AssemblyInfo.cs, and fix .sln and .csproj for the new HorizonDb management SDK package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Azure.ResourceManager.HorizonDb.sln | 30 +- .../CHANGELOG.md | 17 + .../Directory.Build.props | 6 + .../Azure.ResourceManager.HorizonDb/README.md | 80 ++ ...Azure.ResourceManager.HorizonDb.net10.0.cs | 951 ++++++++++++++++++ .../Azure.ResourceManager.HorizonDb.net8.0.cs | 951 ++++++++++++++++++ ...esourceManager.HorizonDb.netstandard2.0.cs | 951 ++++++++++++++++++ .../Azure.ResourceManager.HorizonDb.csproj | 7 +- .../src/Properties/AssemblyInfo.cs | 9 + ...ure.ResourceManager.HorizonDb.Tests.csproj | 8 + .../tests/HorizonDbManagementTestBase.cs | 42 + .../HorizonDbManagementTestEnvironment.cs | 11 + sdk/horizondb/ci.mgmt.yml | 11 + 13 files changed, 3046 insertions(+), 28 deletions(-) create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/Directory.Build.props create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs create mode 100644 sdk/horizondb/ci.mgmt.yml diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln index e96c708d7488..1e3af86a27db 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln @@ -4,40 +4,22 @@ 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("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.HorizonDb.Tests", "tests\Azure.ResourceManager.HorizonDb.Tests.csproj", "{D7592528-A257-4C11-A1B9-D5172243E55F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + {D7592528-A257-4C11-A1B9-D5172243E55F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D7592528-A257-4C11-A1B9-D5172243E55F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D7592528-A257-4C11-A1B9-D5172243E55F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D7592528-A257-4C11-A1B9-D5172243E55F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md b/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md new file mode 100644 index 000000000000..835f40c1e9dc --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md @@ -0,0 +1,17 @@ +# Release History + +## 1.0.0-beta.1 (Unreleased) + +### General New Features + +This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities: + + - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET. + - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing. + - HTTP pipeline with custom policies. + - Better error-handling. + - Support uniform telemetry across all languages. + +This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). + +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet). 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..9d9bb8ab6d53 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md @@ -0,0 +1,80 @@ +# Microsoft Azure HorizonDb management client library for .NET + +This library supports managing Microsoft Azure HorizonDb resources. + +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://learn.microsoft.com/dotnet/api/?view=azure-dotnet). +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md). + +## Examples + +Code samples for using the management library for .NET can be found in the following locations +- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples) + +## Troubleshooting + +- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues). +- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags. + +## Next steps + +For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/). + +## Contributing + +For details on contributing to this repository, see the [contributing +guide][cg]. + +This project welcomes contributions and suggestions. Most contributions +require you to agree to a Contributor License Agreement (CLA) declaring +that you have the right to, and actually do, grant us the rights to use +your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine +whether you need to provide a CLA and decorate the PR appropriately +(for example, label, comment). Follow the instructions provided by the +bot. You'll only need to do this action once across all repositories +using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For +more information, see the [Code of Conduct FAQ][coc_faq] or contact + with any other questions or comments. + + +[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs new file mode 100644 index 000000000000..3f6fff481d49 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs @@ -0,0 +1,951 @@ +namespace Azure.ResourceManager.HorizonDb +{ + public partial class AzureResourceManagerHorizonDbContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureResourceManagerHorizonDbContext() { } + public static Azure.ResourceManager.HorizonDb.AzureResourceManagerHorizonDbContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } + public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbClusterCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbClusterResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } + public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } + public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class HorizonDbExtensions + { + public static Azure.ResourceManager.ArmOperation Delete(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task DeleteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbFirewallRuleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbFirewallRuleData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbFirewallRuleResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbParameterGroupCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbParameterGroupResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbPoolCollection() { } + public virtual Azure.Response Exists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPoolData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties Properties { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbPoolResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } + public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbPrivateLinkResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbPrivateLinkResourceCollection() { } + public virtual Azure.Response Exists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateLinkResourceData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbReplicaCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbReplicaResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected PrivateEndpointConnectionResource() { } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected PrivateEndpointConnectionResourceCollection() { } + public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PrivateEndpointConnectionResourceData() { } + public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} +namespace Azure.ResourceManager.HorizonDb.Mocking +{ + public partial class MockableHorizonDbArmClient : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbArmClient() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class MockableHorizonDbResourceGroupResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbResourceGroupResource() { } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } + public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableHorizonDbSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbSubscriptionResource() { } + public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.HorizonDb.Models +{ + public static partial class ArmHorizonDbModelFactory + { + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?), Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModePool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDb.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDb.Models.ReplicaRole?), Azure.ResourceManager.HorizonDb.Models.State? status = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CreateModeCluster : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CreateModeCluster(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CreateModePool : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CreateModePool(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModePool other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public override string ToString() { throw null; } + } + public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterParameterGroupConnectionProperties() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } + public string SyncStatus { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterPatch() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterProperties(string administratorLogin) { } + public string AdministratorLogin { get { throw null; } set { } } + public string AdministratorLoginPassword { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } + public string FullyQualifiedDomainName { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public System.DateTimeOffset? PointInTimeUTC { get { throw null; } set { } } + public string PoolName { get { throw null; } set { } } + public string ProcessorType { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } + public string ReadonlyEndpoint { get { throw null; } } + public int? ReplicaCount { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceClusterResourceId { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public int? VCores { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterPropertiesForPatchUpdate() { } + public string AdministratorLoginPassword { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public int? VCores { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) { } + public string Description { get { throw null; } set { } } + public string EndIpAddress { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public string StartIpAddress { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbParameterGroupConnectionProperties() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Name { get { throw null; } } + public string Type { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupPatch() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupProperties() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + public int? PgVersion { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public int? Version { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupPropertiesForPatchUpdate() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPoolProperties() { } + public Azure.ResourceManager.HorizonDb.Models.CreateModePool? CreateMode { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public int? ReplicaCount { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public string Version { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateEndpointConnection() { } + public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HorizonDbPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HorizonDbPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class HorizonDbPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateLinkResourceProperties() { } + public string GroupId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } + public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbPrivateLinkServiceConnectionState() { } + public string ActionsRequired { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaPatch() { } + public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaProperties() { } + public string AvailabilityZone { get { throw null; } set { } } + public string FullyQualifiedDomainName { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? Role { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.State? Status { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public OptionalPropertiesUpdateableProperties() { } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ParameterProperties() { } + public string AllowedValues { get { throw null; } } + public string DataType { get { throw null; } } + public string Description { get { throw null; } } + public System.Uri DocumentationLink { get { throw null; } } + public bool? IsDynamic { get { throw null; } } + public bool? IsReadOnly { get { throw null; } } + public string Name { get { throw null; } set { } } + public string Unit { get { throw null; } } + public string Value { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PrivateEndpointConnectionProperties() { } + public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PrivateEndpointConnectionUpdate() { } + public Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ProvisioningState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PublicNetworkAccessState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PublicNetworkAccessState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReplicaRole : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReplicaRole(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole Read { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ReplicaRole other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct State : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public State(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.State Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Dropping { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Healthy { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Ready { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Starting { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Stopped { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Stopping { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.State other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.State (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.State? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ZonePlacementPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ZonePlacementPolicy(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy BestEffort { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy Strict { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public override string ToString() { throw null; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs new file mode 100644 index 000000000000..3f6fff481d49 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs @@ -0,0 +1,951 @@ +namespace Azure.ResourceManager.HorizonDb +{ + public partial class AzureResourceManagerHorizonDbContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureResourceManagerHorizonDbContext() { } + public static Azure.ResourceManager.HorizonDb.AzureResourceManagerHorizonDbContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } + public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbClusterCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbClusterResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } + public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } + public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class HorizonDbExtensions + { + public static Azure.ResourceManager.ArmOperation Delete(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task DeleteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbFirewallRuleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbFirewallRuleData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbFirewallRuleResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbParameterGroupCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbParameterGroupResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbPoolCollection() { } + public virtual Azure.Response Exists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPoolData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties Properties { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbPoolResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } + public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbPrivateLinkResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbPrivateLinkResourceCollection() { } + public virtual Azure.Response Exists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateLinkResourceData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbReplicaCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbReplicaResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected PrivateEndpointConnectionResource() { } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected PrivateEndpointConnectionResourceCollection() { } + public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PrivateEndpointConnectionResourceData() { } + public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} +namespace Azure.ResourceManager.HorizonDb.Mocking +{ + public partial class MockableHorizonDbArmClient : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbArmClient() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class MockableHorizonDbResourceGroupResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbResourceGroupResource() { } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } + public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableHorizonDbSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbSubscriptionResource() { } + public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.HorizonDb.Models +{ + public static partial class ArmHorizonDbModelFactory + { + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?), Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModePool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDb.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDb.Models.ReplicaRole?), Azure.ResourceManager.HorizonDb.Models.State? status = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CreateModeCluster : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CreateModeCluster(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CreateModePool : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CreateModePool(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModePool other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public override string ToString() { throw null; } + } + public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterParameterGroupConnectionProperties() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } + public string SyncStatus { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterPatch() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterProperties(string administratorLogin) { } + public string AdministratorLogin { get { throw null; } set { } } + public string AdministratorLoginPassword { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } + public string FullyQualifiedDomainName { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public System.DateTimeOffset? PointInTimeUTC { get { throw null; } set { } } + public string PoolName { get { throw null; } set { } } + public string ProcessorType { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } + public string ReadonlyEndpoint { get { throw null; } } + public int? ReplicaCount { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceClusterResourceId { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public int? VCores { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterPropertiesForPatchUpdate() { } + public string AdministratorLoginPassword { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public int? VCores { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) { } + public string Description { get { throw null; } set { } } + public string EndIpAddress { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public string StartIpAddress { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbParameterGroupConnectionProperties() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Name { get { throw null; } } + public string Type { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupPatch() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupProperties() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + public int? PgVersion { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public int? Version { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupPropertiesForPatchUpdate() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPoolProperties() { } + public Azure.ResourceManager.HorizonDb.Models.CreateModePool? CreateMode { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public int? ReplicaCount { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public string Version { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateEndpointConnection() { } + public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HorizonDbPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HorizonDbPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class HorizonDbPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateLinkResourceProperties() { } + public string GroupId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } + public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbPrivateLinkServiceConnectionState() { } + public string ActionsRequired { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaPatch() { } + public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaProperties() { } + public string AvailabilityZone { get { throw null; } set { } } + public string FullyQualifiedDomainName { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? Role { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.State? Status { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public OptionalPropertiesUpdateableProperties() { } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ParameterProperties() { } + public string AllowedValues { get { throw null; } } + public string DataType { get { throw null; } } + public string Description { get { throw null; } } + public System.Uri DocumentationLink { get { throw null; } } + public bool? IsDynamic { get { throw null; } } + public bool? IsReadOnly { get { throw null; } } + public string Name { get { throw null; } set { } } + public string Unit { get { throw null; } } + public string Value { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PrivateEndpointConnectionProperties() { } + public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PrivateEndpointConnectionUpdate() { } + public Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ProvisioningState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PublicNetworkAccessState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PublicNetworkAccessState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReplicaRole : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReplicaRole(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole Read { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ReplicaRole other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct State : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public State(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.State Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Dropping { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Healthy { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Ready { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Starting { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Stopped { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Stopping { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.State other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.State (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.State? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ZonePlacementPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ZonePlacementPolicy(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy BestEffort { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy Strict { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public override string ToString() { throw null; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs new file mode 100644 index 000000000000..3f6fff481d49 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs @@ -0,0 +1,951 @@ +namespace Azure.ResourceManager.HorizonDb +{ + public partial class AzureResourceManagerHorizonDbContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureResourceManagerHorizonDbContext() { } + public static Azure.ResourceManager.HorizonDb.AzureResourceManagerHorizonDbContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } + public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbClusterCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbClusterResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } + public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } + public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class HorizonDbExtensions + { + public static Azure.ResourceManager.ArmOperation Delete(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task DeleteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbFirewallRuleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbFirewallRuleData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbFirewallRuleResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbParameterGroupCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbParameterGroupResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbPoolCollection() { } + public virtual Azure.Response Exists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPoolData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties Properties { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbPoolResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } + public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbPrivateLinkResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbPrivateLinkResourceCollection() { } + public virtual Azure.Response Exists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateLinkResourceData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HorizonDbReplicaCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaData() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HorizonDbReplicaResource() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected PrivateEndpointConnectionResource() { } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected PrivateEndpointConnectionResourceCollection() { } + public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PrivateEndpointConnectionResourceData() { } + public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} +namespace Azure.ResourceManager.HorizonDb.Mocking +{ + public partial class MockableHorizonDbArmClient : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbArmClient() { } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class MockableHorizonDbResourceGroupResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbResourceGroupResource() { } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } + public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableHorizonDbSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDbSubscriptionResource() { } + public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.HorizonDb.Models +{ + public static partial class ArmHorizonDbModelFactory + { + public static Azure.ResourceManager.HorizonDb.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?), Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModePool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDb.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDb.Models.ReplicaRole?), Azure.ResourceManager.HorizonDb.Models.State? status = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CreateModeCluster : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CreateModeCluster(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CreateModePool : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CreateModePool(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModePool other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public override string ToString() { throw null; } + } + public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterParameterGroupConnectionProperties() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } + public string SyncStatus { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterPatch() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterProperties(string administratorLogin) { } + public string AdministratorLogin { get { throw null; } set { } } + public string AdministratorLoginPassword { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } + public string FullyQualifiedDomainName { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public System.DateTimeOffset? PointInTimeUTC { get { throw null; } set { } } + public string PoolName { get { throw null; } set { } } + public string ProcessorType { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } + public string ReadonlyEndpoint { get { throw null; } } + public int? ReplicaCount { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceClusterResourceId { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public int? VCores { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbClusterPropertiesForPatchUpdate() { } + public string AdministratorLoginPassword { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public int? VCores { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) { } + public string Description { get { throw null; } set { } } + public string EndIpAddress { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public string StartIpAddress { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbParameterGroupConnectionProperties() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Name { get { throw null; } } + public string Type { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupPatch() { } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupProperties() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + public int? PgVersion { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public int? Version { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbParameterGroupPropertiesForPatchUpdate() { } + public bool? ApplyImmediately { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPoolProperties() { } + public Azure.ResourceManager.HorizonDb.Models.CreateModePool? CreateMode { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public int? ReplicaCount { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public string Version { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateEndpointConnection() { } + public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HorizonDbPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HorizonDbPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class HorizonDbPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HorizonDbPrivateLinkResourceProperties() { } + public string GroupId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } + public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbPrivateLinkServiceConnectionState() { } + public string ActionsRequired { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaPatch() { } + public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HorizonDbReplicaProperties() { } + public string AvailabilityZone { get { throw null; } set { } } + public string FullyQualifiedDomainName { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? Role { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDb.Models.State? Status { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public OptionalPropertiesUpdateableProperties() { } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ParameterProperties() { } + public string AllowedValues { get { throw null; } } + public string DataType { get { throw null; } } + public string Description { get { throw null; } } + public System.Uri DocumentationLink { get { throw null; } } + public bool? IsDynamic { get { throw null; } } + public bool? IsReadOnly { get { throw null; } } + public string Name { get { throw null; } set { } } + public string Unit { get { throw null; } } + public string Value { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PrivateEndpointConnectionProperties() { } + public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PrivateEndpointConnectionUpdate() { } + public Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ProvisioningState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PublicNetworkAccessState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PublicNetworkAccessState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReplicaRole : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReplicaRole(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole Read { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ReplicaRole other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct State : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public State(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.State Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Dropping { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Healthy { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Ready { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Starting { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Stopped { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Stopping { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.State Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.State other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.State (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.State? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ZonePlacementPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ZonePlacementPolicy(string value) { throw null; } + public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy BestEffort { get { throw null; } } + public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy Strict { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public override string ToString() { throw null; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj index 97070e3a2abe..10e3cdba8180 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj @@ -1,9 +1,8 @@ - This is the Azure.ResourceManager.HorizonDb client library for developing .NET applications with rich experience. - SDK Code Generation Azure.ResourceManager.HorizonDb + Azure.ResourceManager.HorizonDb + Azure Resource Manager client SDK for Azure resource provider HorizonDb. 1.0.0-beta.1 - Azure.ResourceManager.HorizonDb - true + azure;management;arm;resource manager;horizondb diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..55ce5e97e0a8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.HorizonDb")] + +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] +[assembly: InternalsVisibleTo("Azure.ResourceManager.HorizonDb.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj new file mode 100644 index 000000000000..a90244c4dfe9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs new file mode 100644 index 000000000000..21aedfb00291 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.TestFramework; +using NUnit.Framework; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.HorizonDb.Tests +{ + public class HorizonDbManagementTestBase : ManagementRecordedTestBase + { + protected ArmClient Client { get; private set; } + protected SubscriptionResource DefaultSubscription { get; private set; } + + protected HorizonDbManagementTestBase(bool isAsync, RecordedTestMode mode) + : base(isAsync, mode) + { + } + + protected HorizonDbManagementTestBase(bool isAsync) + : base(isAsync) + { + } + + [SetUp] + public async Task CreateCommonClient() + { + Client = GetArmClient(); + DefaultSubscription = await Client.GetDefaultSubscriptionAsync().ConfigureAwait(false); + } + + protected async Task CreateResourceGroup(SubscriptionResource subscription, string rgName, AzureLocation location) + { + ResourceGroupData input = new ResourceGroupData(location); + var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, input); + return lro.Value; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs new file mode 100644 index 000000000000..ea41ed02895e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.HorizonDb.Tests +{ + public class HorizonDbManagementTestEnvironment : TestEnvironment + { + } +} diff --git a/sdk/horizondb/ci.mgmt.yml b/sdk/horizondb/ci.mgmt.yml new file mode 100644 index 000000000000..b56510a0a318 --- /dev/null +++ b/sdk/horizondb/ci.mgmt.yml @@ -0,0 +1,11 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: none +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: horizondb + LimitForPullRequest: true + Artifacts: + - name: Azure.ResourceManager.HorizonDb + safeName: AzureResourceManagerHorizonDb From 96657937b687f1ea3d79c20e4de44711de61b435 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 29 Apr 2026 08:55:49 +0800 Subject: [PATCH 3/7] Rename HorizonDb to HorizonDB in non-generated files Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Azure.ResourceManager.HorizonDB.slnx | 4 +++ .../CHANGELOG.md | 0 .../Directory.Build.props | 0 .../README.md | 8 ++--- ...zure.ResourceManager.HorizonDB.net10.0.cs} | 0 ...Azure.ResourceManager.HorizonDB.net8.0.cs} | 0 ...sourceManager.HorizonDB.netstandard2.0.cs} | 0 .../metadata.json | 0 .../Azure.ResourceManager.HorizonDB.csproj} | 4 +-- .../src/Generated/ArmHorizonDbModelFactory.cs | 0 ...ByResourceGroupAsyncCollectionResultOfT.cs | 0 ...rsGetByResourceGroupCollectionResultOfT.cs | 0 ...tBySubscriptionAsyncCollectionResultOfT.cs | 0 ...ersGetBySubscriptionCollectionResultOfT.cs | 0 ...wallRulesGetAllAsyncCollectionResultOfT.cs | 0 ...bFirewallRulesGetAllCollectionResultOfT.cs | 0 ...ByResourceGroupAsyncCollectionResultOfT.cs | 0 ...psGetByResourceGroupCollectionResultOfT.cs | 0 ...tBySubscriptionAsyncCollectionResultOfT.cs | 0 ...upsGetBySubscriptionCollectionResultOfT.cs | 0 ...sGetConnectionsAsyncCollectionResultOfT.cs | 0 ...GroupsGetConnectionsCollectionResultOfT.cs | 0 ...oupsGetVersionsAsyncCollectionResultOfT.cs | 0 ...terGroupsGetVersionsCollectionResultOfT.cs | 0 ...onDbPoolsGetAllAsyncCollectionResultOfT.cs | 0 ...HorizonDbPoolsGetAllCollectionResultOfT.cs | 0 ...nnectionsGetAllAsyncCollectionResultOfT.cs | 0 ...intConnectionsGetAllCollectionResultOfT.cs | 0 ...ResourcesGetAllAsyncCollectionResultOfT.cs | 0 ...eLinkResourcesGetAllCollectionResultOfT.cs | 0 ...bReplicasGetAllAsyncCollectionResultOfT.cs | 0 ...izonDbReplicasGetAllCollectionResultOfT.cs | 0 .../Extensions/HorizonDbExtensions.cs | 0 .../Extensions/MockableHorizonDbArmClient.cs | 0 .../MockableHorizonDbResourceGroupResource.cs | 0 .../MockableHorizonDbSubscriptionResource.cs | 0 .../Generated/HorizonDbClusterCollection.cs | 0 .../HorizonDbClusterData.Serialization.cs | 0 .../src/Generated/HorizonDbClusterData.cs | 0 .../HorizonDbClusterResource.Serialization.cs | 0 .../src/Generated/HorizonDbClusterResource.cs | 0 .../HorizonDbFirewallRuleCollection.cs | 0 ...HorizonDbFirewallRuleData.Serialization.cs | 0 .../Generated/HorizonDbFirewallRuleData.cs | 0 ...zonDbFirewallRuleResource.Serialization.cs | 0 .../HorizonDbFirewallRuleResource.cs | 0 .../HorizonDbParameterGroupCollection.cs | 0 ...rizonDbParameterGroupData.Serialization.cs | 0 .../Generated/HorizonDbParameterGroupData.cs | 0 ...nDbParameterGroupResource.Serialization.cs | 0 .../HorizonDbParameterGroupResource.cs | 0 .../src/Generated/HorizonDbPoolCollection.cs | 0 .../HorizonDbPoolData.Serialization.cs | 0 .../src/Generated/HorizonDbPoolData.cs | 0 .../HorizonDbPoolResource.Serialization.cs | 0 .../src/Generated/HorizonDbPoolResource.cs | 0 ...izonDbPrivateLinkResource.Serialization.cs | 0 .../Generated/HorizonDbPrivateLinkResource.cs | 0 .../HorizonDbPrivateLinkResourceCollection.cs | 0 ...DbPrivateLinkResourceData.Serialization.cs | 0 .../HorizonDbPrivateLinkResourceData.cs | 0 .../Generated/HorizonDbReplicaCollection.cs | 0 .../HorizonDbReplicaData.Serialization.cs | 0 .../src/Generated/HorizonDbReplicaData.cs | 0 .../HorizonDbReplicaResource.Serialization.cs | 0 .../src/Generated/HorizonDbReplicaResource.cs | 0 .../src/Generated/Internal/Argument.cs | 0 .../Internal/AsyncPageableWrapper.cs | 0 .../Internal/ChangeTrackingDictionary.cs | 0 .../Generated/Internal/ChangeTrackingList.cs | 0 .../Internal/ClientPipelineExtensions.cs | 0 .../Internal/CodeGenMemberAttribute.cs | 0 .../Internal/CodeGenSerializationAttribute.cs | 0 .../Internal/CodeGenSuppressAttribute.cs | 0 .../Internal/CodeGenTypeAttribute.cs | 0 .../src/Generated/Internal/ErrorResult.cs | 0 .../Internal/ModelSerializationExtensions.cs | 0 .../src/Generated/Internal/Optional.cs | 0 .../src/Generated/Internal/PageableWrapper.cs | 0 .../RawRequestUriBuilderExtensions.cs | 0 .../Internal/RequestContextExtensions.cs | 0 .../Generated/Internal/SerializationFormat.cs | 0 .../src/Generated/Internal/TypeFormatters.cs | 0 .../HorizonDbArmOperation.cs | 0 .../HorizonDbArmOperationOfT.cs | 0 .../HorizonDbClusterOperationSource.cs | 0 .../HorizonDbFirewallRuleOperationSource.cs | 0 .../HorizonDbParameterGroupOperationSource.cs | 0 ...rivateEndpointConnectionOperationSource.cs | 0 .../HorizonDbReplicaOperationSource.cs | 0 .../AzureResourceManagerHorizonDbContext.cs | 0 .../src/Generated/Models/CreateModeCluster.cs | 0 .../src/Generated/Models/CreateModePool.cs | 0 ...orizonDbClusterListResult.Serialization.cs | 0 .../Models/HorizonDbClusterListResult.cs | 0 ...GroupConnectionProperties.Serialization.cs | 0 ...usterParameterGroupConnectionProperties.cs | 0 .../HorizonDbClusterPatch.Serialization.cs | 0 .../Generated/Models/HorizonDbClusterPatch.cs | 0 ...orizonDbClusterProperties.Serialization.cs | 0 .../Models/HorizonDbClusterProperties.cs | 0 ...rPropertiesForPatchUpdate.Serialization.cs | 0 ...orizonDbClusterPropertiesForPatchUpdate.cs | 0 ...nDbFirewallRuleListResult.Serialization.cs | 0 .../Models/HorizonDbFirewallRuleListResult.cs | 0 ...nDbFirewallRuleProperties.Serialization.cs | 0 .../Models/HorizonDbFirewallRuleProperties.cs | 0 ...GroupConnectionProperties.Serialization.cs | 0 ...zonDbParameterGroupConnectionProperties.cs | 0 ...ctionPropertiesListResult.Serialization.cs | 0 ...eterGroupConnectionPropertiesListResult.cs | 0 ...bParameterGroupListResult.Serialization.cs | 0 .../HorizonDbParameterGroupListResult.cs | 0 ...izonDbParameterGroupPatch.Serialization.cs | 0 .../Models/HorizonDbParameterGroupPatch.cs | 0 ...bParameterGroupProperties.Serialization.cs | 0 .../HorizonDbParameterGroupProperties.cs | 0 ...pPropertiesForPatchUpdate.Serialization.cs | 0 ...bParameterGroupPropertiesForPatchUpdate.cs | 0 .../HorizonDbPoolListResult.Serialization.cs | 0 .../Models/HorizonDbPoolListResult.cs | 0 .../HorizonDbPoolProperties.Serialization.cs | 0 .../Models/HorizonDbPoolProperties.cs | 0 ...PrivateEndpointConnection.Serialization.cs | 0 .../HorizonDbPrivateEndpointConnection.cs | 0 ...vateEndpointConnectionProvisioningState.cs | 0 ...bPrivateEndpointServiceConnectionStatus.cs | 0 ...ateLinkResourceListResult.Serialization.cs | 0 .../HorizonDbPrivateLinkResourceListResult.cs | 0 ...ateLinkResourceProperties.Serialization.cs | 0 .../HorizonDbPrivateLinkResourceProperties.cs | 0 ...inkServiceConnectionState.Serialization.cs | 0 ...izonDbPrivateLinkServiceConnectionState.cs | 0 ...orizonDbReplicaListResult.Serialization.cs | 0 .../Models/HorizonDbReplicaListResult.cs | 0 .../HorizonDbReplicaPatch.Serialization.cs | 0 .../Generated/Models/HorizonDbReplicaPatch.cs | 0 ...orizonDbReplicaProperties.Serialization.cs | 0 .../Models/HorizonDbReplicaProperties.cs | 0 ...aPropertiesForPatchUpdate.Serialization.cs | 0 ...orizonDbReplicaPropertiesForPatchUpdate.cs | 0 .../Generated/Models/Network.Serialization.cs | 0 .../src/Generated/Models/Network.cs | 0 ...rtiesUpdateableProperties.Serialization.cs | 0 .../OptionalPropertiesUpdateableProperties.cs | 0 .../ParameterProperties.Serialization.cs | 0 .../Generated/Models/ParameterProperties.cs | 0 .../Models/PrivateEndpoint.Serialization.cs | 0 .../src/Generated/Models/PrivateEndpoint.cs | 0 ...pointConnectionProperties.Serialization.cs | 0 .../PrivateEndpointConnectionProperties.cs | 0 ...nectionResourceListResult.Serialization.cs | 0 ...ateEndpointConnectionResourceListResult.cs | 0 ...eEndpointConnectionUpdate.Serialization.cs | 0 .../Models/PrivateEndpointConnectionUpdate.cs | 0 .../src/Generated/Models/ProvisioningState.cs | 0 .../Models/PublicNetworkAccessState.cs | 0 .../src/Generated/Models/ReplicaRole.cs | 0 .../src/Generated/Models/State.cs | 0 .../Generated/Models/ZonePlacementPolicy.cs | 0 ...ndpointConnectionResource.Serialization.cs | 0 .../PrivateEndpointConnectionResource.cs | 0 ...ateEndpointConnectionResourceCollection.cs | 0 ...intConnectionResourceData.Serialization.cs | 0 .../PrivateEndpointConnectionResourceData.cs | 0 .../src/Generated/ProviderConstants.cs | 0 .../HorizonDbClustersRestOperations.cs | 0 .../HorizonDbFirewallRulesRestOperations.cs | 0 .../HorizonDbParameterGroupsRestOperations.cs | 0 .../HorizonDbPoolsRestOperations.cs | 0 ...rivateEndpointConnectionsRestOperations.cs | 0 ...zonDbPrivateLinkResourcesRestOperations.cs | 0 .../HorizonDbReplicasRestOperations.cs | 0 .../src/Properties/AssemblyInfo.cs | 2 +- ...re.ResourceManager.HorizonDB.Tests.csproj} | 2 +- .../tests/HorizonDBManagementTestBase.cs} | 8 ++--- .../HorizonDBManagementTestEnvironment.cs} | 4 +-- .../tsp-location.yaml | 0 .../Azure.ResourceManager.HorizonDb.sln | 30 ------------------- sdk/horizondb/ci.mgmt.yml | 4 +-- 180 files changed, 20 insertions(+), 46 deletions(-) create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/Azure.ResourceManager.HorizonDB.slnx rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/CHANGELOG.md (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/Directory.Build.props (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/README.md (92%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs => Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs} (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs => Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs} (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs => Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs} (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/metadata.json (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj => Azure.ResourceManager.HorizonDB/src/Azure.ResourceManager.HorizonDB.csproj} (72%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/ArmHorizonDbModelFactory.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Extensions/HorizonDbExtensions.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Extensions/MockableHorizonDbArmClient.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbClusterCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbClusterData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbClusterData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbClusterResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbClusterResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbFirewallRuleCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbFirewallRuleData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbFirewallRuleData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbFirewallRuleResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbParameterGroupCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbParameterGroupData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbParameterGroupData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbParameterGroupResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbParameterGroupResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPoolCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPoolData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPoolData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPoolResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPoolResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPrivateLinkResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPrivateLinkResourceCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbPrivateLinkResourceData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbReplicaCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbReplicaData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbReplicaData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbReplicaResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/HorizonDbReplicaResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/Argument.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/AsyncPageableWrapper.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/ChangeTrackingDictionary.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/ChangeTrackingList.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/ClientPipelineExtensions.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/CodeGenMemberAttribute.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/CodeGenSerializationAttribute.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/CodeGenSuppressAttribute.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/CodeGenTypeAttribute.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/ErrorResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/ModelSerializationExtensions.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/Optional.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/PageableWrapper.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/RawRequestUriBuilderExtensions.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/RequestContextExtensions.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/SerializationFormat.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Internal/TypeFormatters.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/CreateModeCluster.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/CreateModePool.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterPatch.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbFirewallRuleListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbFirewallRuleProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupPatch.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPoolListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPoolProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaPatch.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/Network.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/Network.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/ParameterProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/ParameterProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpoint.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpoint.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpointConnectionProperties.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PrivateEndpointConnectionUpdate.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/ProvisioningState.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/PublicNetworkAccessState.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/ReplicaRole.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/State.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/Models/ZonePlacementPolicy.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/PrivateEndpointConnectionResource.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/PrivateEndpointConnectionResource.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/PrivateEndpointConnectionResourceCollection.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/PrivateEndpointConnectionResourceData.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/ProviderConstants.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs (100%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/src/Properties/AssemblyInfo.cs (93%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj => Azure.ResourceManager.HorizonDB/tests/Azure.ResourceManager.HorizonDB.Tests.csproj} (93%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs => Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestBase.cs} (80%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs => Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestEnvironment.cs} (57%) rename sdk/horizondb/{Azure.ResourceManager.HorizonDb => Azure.ResourceManager.HorizonDB}/tsp-location.yaml (100%) delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/Azure.ResourceManager.HorizonDB.slnx b/sdk/horizondb/Azure.ResourceManager.HorizonDB/Azure.ResourceManager.HorizonDB.slnx new file mode 100644 index 000000000000..892cf2b71334 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/Azure.ResourceManager.HorizonDB.slnx @@ -0,0 +1,4 @@ + + + + diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md b/sdk/horizondb/Azure.ResourceManager.HorizonDB/CHANGELOG.md similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/CHANGELOG.md diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Directory.Build.props b/sdk/horizondb/Azure.ResourceManager.HorizonDB/Directory.Build.props similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/Directory.Build.props rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/Directory.Build.props diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md b/sdk/horizondb/Azure.ResourceManager.HorizonDB/README.md similarity index 92% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/README.md index 9d9bb8ab6d53..2d100d5cc34a 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/README.md @@ -1,6 +1,6 @@ -# Microsoft Azure HorizonDb management client library for .NET +# Microsoft Azure HorizonDB management client library for .NET -This library supports managing Microsoft Azure HorizonDb resources. +This library supports managing Microsoft Azure HorizonDB resources. This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities: @@ -14,10 +14,10 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur ### Install the package -Install the Microsoft Azure HorizonDb management library for .NET with [NuGet](https://www.nuget.org/): +Install the Microsoft Azure HorizonDB management library for .NET with [NuGet](https://www.nuget.org/): ```dotnetcli -dotnet add package Azure.ResourceManager.HorizonDb --prerelease +dotnet add package Azure.ResourceManager.HorizonDB --prerelease ``` ### Prerequisites diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net10.0.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.net8.0.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/api/Azure.ResourceManager.HorizonDb.netstandard2.0.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/metadata.json b/sdk/horizondb/Azure.ResourceManager.HorizonDB/metadata.json similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/metadata.json rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/metadata.json diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Azure.ResourceManager.HorizonDB.csproj similarity index 72% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Azure.ResourceManager.HorizonDB.csproj index 10e3cdba8180..5355bcb2ac1f 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Azure.ResourceManager.HorizonDB.csproj @@ -1,7 +1,7 @@ - Azure.ResourceManager.HorizonDb - Azure Resource Manager client SDK for Azure resource provider HorizonDb. + Azure.ResourceManager.HorizonDB + Azure Resource Manager client SDK for Azure resource provider HorizonDB. 1.0.0-beta.1 azure;management;arm;resource manager;horizondb diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ArmHorizonDbModelFactory.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDbModelFactory.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ArmHorizonDbModelFactory.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDbModelFactory.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/HorizonDbExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDbExtensions.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/HorizonDbExtensions.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDbExtensions.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbArmClient.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbArmClient.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbArmClient.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbArmClient.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbFirewallRuleResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbParameterGroupResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPoolResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbPrivateLinkResourceData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbReplicaResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Argument.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Argument.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/AsyncPageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/AsyncPageableWrapper.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingDictionary.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingList.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ChangeTrackingList.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ClientPipelineExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ClientPipelineExtensions.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenMemberAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenMemberAttribute.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSerializationAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSerializationAttribute.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSuppressAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenSuppressAttribute.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenTypeAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/CodeGenTypeAttribute.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ErrorResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ErrorResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/ModelSerializationExtensions.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Optional.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/Optional.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/PageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/PageableWrapper.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RawRequestUriBuilderExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RawRequestUriBuilderExtensions.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RequestContextExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/RequestContextExtensions.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/SerializationFormat.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/SerializationFormat.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/TypeFormatters.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Internal/TypeFormatters.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModeCluster.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModeCluster.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModePool.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/CreateModePool.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPatch.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbFirewallRuleProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPatch.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPoolProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPatch.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/Network.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ParameterProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpoint.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PrivateEndpointConnectionUpdate.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ProvisioningState.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PublicNetworkAccessState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/PublicNetworkAccessState.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ReplicaRole.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ReplicaRole.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/State.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/State.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ZonePlacementPolicy.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Models/ZonePlacementPolicy.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/PrivateEndpointConnectionResourceData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ProviderConstants.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ProviderConstants.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Properties/AssemblyInfo.cs similarity index 93% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Properties/AssemblyInfo.cs index 55ce5e97e0a8..4a6e18e2864e 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Properties/AssemblyInfo.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Properties/AssemblyInfo.cs @@ -6,4 +6,4 @@ [assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.HorizonDb")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] -[assembly: InternalsVisibleTo("Azure.ResourceManager.HorizonDb.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] +[assembly: InternalsVisibleTo("Azure.ResourceManager.HorizonDB.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/Azure.ResourceManager.HorizonDB.Tests.csproj similarity index 93% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/Azure.ResourceManager.HorizonDB.Tests.csproj index a90244c4dfe9..ccc96b8dd91c 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/Azure.ResourceManager.HorizonDb.Tests.csproj +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/Azure.ResourceManager.HorizonDB.Tests.csproj @@ -1,6 +1,6 @@ - + diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestBase.cs similarity index 80% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestBase.cs index 21aedfb00291..fad2e4c95ad6 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestBase.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestBase.cs @@ -8,19 +8,19 @@ using NUnit.Framework; using System.Threading.Tasks; -namespace Azure.ResourceManager.HorizonDb.Tests +namespace Azure.ResourceManager.HorizonDB.Tests { - public class HorizonDbManagementTestBase : ManagementRecordedTestBase + public class HorizonDBManagementTestBase : ManagementRecordedTestBase { protected ArmClient Client { get; private set; } protected SubscriptionResource DefaultSubscription { get; private set; } - protected HorizonDbManagementTestBase(bool isAsync, RecordedTestMode mode) + protected HorizonDBManagementTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) { } - protected HorizonDbManagementTestBase(bool isAsync) + protected HorizonDBManagementTestBase(bool isAsync) : base(isAsync) { } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestEnvironment.cs similarity index 57% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestEnvironment.cs index ea41ed02895e..742b67d6bb6a 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tests/HorizonDbManagementTestEnvironment.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tests/HorizonDBManagementTestEnvironment.cs @@ -3,9 +3,9 @@ using Azure.Core.TestFramework; -namespace Azure.ResourceManager.HorizonDb.Tests +namespace Azure.ResourceManager.HorizonDB.Tests { - public class HorizonDbManagementTestEnvironment : TestEnvironment + public class HorizonDBManagementTestEnvironment : TestEnvironment { } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/tsp-location.yaml b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml similarity index 100% rename from sdk/horizondb/Azure.ResourceManager.HorizonDb/tsp-location.yaml rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln deleted file mode 100644 index 1e3af86a27db..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln +++ /dev/null @@ -1,30 +0,0 @@ -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("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.HorizonDb.Tests", "tests\Azure.ResourceManager.HorizonDb.Tests.csproj", "{D7592528-A257-4C11-A1B9-D5172243E55F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - 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}.Release|Any CPU.ActiveCfg = Release|Any CPU - {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU - {D7592528-A257-4C11-A1B9-D5172243E55F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D7592528-A257-4C11-A1B9-D5172243E55F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D7592528-A257-4C11-A1B9-D5172243E55F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D7592528-A257-4C11-A1B9-D5172243E55F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} - EndGlobalSection -EndGlobal diff --git a/sdk/horizondb/ci.mgmt.yml b/sdk/horizondb/ci.mgmt.yml index b56510a0a318..8121da9e1bc0 100644 --- a/sdk/horizondb/ci.mgmt.yml +++ b/sdk/horizondb/ci.mgmt.yml @@ -7,5 +7,5 @@ extends: ServiceDirectory: horizondb LimitForPullRequest: true Artifacts: - - name: Azure.ResourceManager.HorizonDb - safeName: AzureResourceManagerHorizonDb + - name: Azure.ResourceManager.HorizonDB + safeName: AzureResourceManagerHorizonDB From f9aeb4623bfcd05b0936f863179fe58fb318e4cb Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 29 Apr 2026 09:03:01 +0800 Subject: [PATCH 4/7] Remove Generated directory before regeneration Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/Generated/ArmHorizonDbModelFactory.cs | 399 --------- ...ByResourceGroupAsyncCollectionResultOfT.cs | 81 -- ...rsGetByResourceGroupCollectionResultOfT.cs | 80 -- ...tBySubscriptionAsyncCollectionResultOfT.cs | 78 -- ...ersGetBySubscriptionCollectionResultOfT.cs | 77 -- ...wallRulesGetAllAsyncCollectionResultOfT.cs | 87 -- ...bFirewallRulesGetAllCollectionResultOfT.cs | 86 -- ...ByResourceGroupAsyncCollectionResultOfT.cs | 81 -- ...psGetByResourceGroupCollectionResultOfT.cs | 80 -- ...tBySubscriptionAsyncCollectionResultOfT.cs | 78 -- ...upsGetBySubscriptionCollectionResultOfT.cs | 77 -- ...sGetConnectionsAsyncCollectionResultOfT.cs | 84 -- ...GroupsGetConnectionsCollectionResultOfT.cs | 83 -- ...oupsGetVersionsAsyncCollectionResultOfT.cs | 87 -- ...terGroupsGetVersionsCollectionResultOfT.cs | 86 -- ...onDbPoolsGetAllAsyncCollectionResultOfT.cs | 84 -- ...HorizonDbPoolsGetAllCollectionResultOfT.cs | 83 -- ...nnectionsGetAllAsyncCollectionResultOfT.cs | 84 -- ...intConnectionsGetAllCollectionResultOfT.cs | 83 -- ...ResourcesGetAllAsyncCollectionResultOfT.cs | 84 -- ...eLinkResourcesGetAllCollectionResultOfT.cs | 83 -- ...bReplicasGetAllAsyncCollectionResultOfT.cs | 87 -- ...izonDbReplicasGetAllCollectionResultOfT.cs | 86 -- .../Extensions/HorizonDbExtensions.cs | 427 --------- .../Extensions/MockableHorizonDbArmClient.cs | 92 -- .../MockableHorizonDbResourceGroupResource.cs | 389 --------- .../MockableHorizonDbSubscriptionResource.cs | 159 ---- .../Generated/HorizonDbClusterCollection.cs | 580 ------------ .../HorizonDbClusterData.Serialization.cs | 229 ----- .../src/Generated/HorizonDbClusterData.cs | 46 - .../HorizonDbClusterResource.Serialization.cs | 39 - .../src/Generated/HorizonDbClusterResource.cs | 781 ----------------- .../HorizonDbFirewallRuleCollection.cs | 591 ------------- ...HorizonDbFirewallRuleData.Serialization.cs | 194 ----- .../Generated/HorizonDbFirewallRuleData.cs | 43 - ...zonDbFirewallRuleResource.Serialization.cs | 39 - .../HorizonDbFirewallRuleResource.cs | 407 --------- .../HorizonDbParameterGroupCollection.cs | 580 ------------ ...rizonDbParameterGroupData.Serialization.cs | 229 ----- .../Generated/HorizonDbParameterGroupData.cs | 46 - ...nDbParameterGroupResource.Serialization.cs | 39 - .../HorizonDbParameterGroupResource.cs | 824 ------------------ .../src/Generated/HorizonDbPoolCollection.cs | 463 ---------- .../HorizonDbPoolData.Serialization.cs | 223 ----- .../src/Generated/HorizonDbPoolData.cs | 49 -- .../HorizonDbPoolResource.Serialization.cs | 39 - .../src/Generated/HorizonDbPoolResource.cs | 256 ------ ...izonDbPrivateLinkResource.Serialization.cs | 39 - .../Generated/HorizonDbPrivateLinkResource.cs | 190 ---- .../HorizonDbPrivateLinkResourceCollection.cs | 463 ---------- ...DbPrivateLinkResourceData.Serialization.cs | 184 ---- .../HorizonDbPrivateLinkResourceData.cs | 43 - .../Generated/HorizonDbReplicaCollection.cs | 591 ------------- .../HorizonDbReplicaData.Serialization.cs | 194 ----- .../src/Generated/HorizonDbReplicaData.cs | 43 - .../HorizonDbReplicaResource.Serialization.cs | 39 - .../src/Generated/HorizonDbReplicaResource.cs | 408 --------- .../src/Generated/Internal/Argument.cs | 113 --- .../Internal/AsyncPageableWrapper.cs | 48 - .../Internal/ChangeTrackingDictionary.cs | 189 ---- .../Generated/Internal/ChangeTrackingList.cs | 168 ---- .../Internal/ClientPipelineExtensions.cs | 72 -- .../Internal/CodeGenMemberAttribute.cs | 20 - .../Internal/CodeGenSerializationAttribute.cs | 48 - .../Internal/CodeGenSuppressAttribute.cs | 29 - .../Internal/CodeGenTypeAttribute.cs | 24 - .../src/Generated/Internal/ErrorResult.cs | 32 - .../Internal/ModelSerializationExtensions.cs | 268 ------ .../src/Generated/Internal/Optional.cs | 51 -- .../src/Generated/Internal/PageableWrapper.cs | 47 - .../RawRequestUriBuilderExtensions.cs | 60 -- .../Internal/RequestContextExtensions.cs | 26 - .../Generated/Internal/SerializationFormat.cs | 49 -- .../src/Generated/Internal/TypeFormatters.cs | 181 ---- .../HorizonDbArmOperation.cs | 106 --- .../HorizonDbArmOperationOfT.cs | 113 --- .../HorizonDbClusterOperationSource.cs | 49 -- .../HorizonDbFirewallRuleOperationSource.cs | 49 -- .../HorizonDbParameterGroupOperationSource.cs | 49 -- ...rivateEndpointConnectionOperationSource.cs | 45 - .../HorizonDbReplicaOperationSource.cs | 49 -- .../AzureResourceManagerHorizonDbContext.cs | 68 -- .../src/Generated/Models/CreateModeCluster.cs | 76 -- .../src/Generated/Models/CreateModePool.cs | 71 -- ...orizonDbClusterListResult.Serialization.cs | 176 ---- .../Models/HorizonDbClusterListResult.cs | 45 - ...GroupConnectionProperties.Serialization.cs | 172 ---- ...usterParameterGroupConnectionProperties.cs | 47 - .../HorizonDbClusterPatch.Serialization.cs | 194 ----- .../Generated/Models/HorizonDbClusterPatch.cs | 43 - ...orizonDbClusterProperties.Serialization.cs | 378 -------- .../Models/HorizonDbClusterProperties.cs | 132 --- ...rPropertiesForPatchUpdate.Serialization.cs | 171 ---- ...orizonDbClusterPropertiesForPatchUpdate.cs | 46 - ...nDbFirewallRuleListResult.Serialization.cs | 176 ---- .../Models/HorizonDbFirewallRuleListResult.cs | 45 - ...nDbFirewallRuleProperties.Serialization.cs | 177 ---- .../Models/HorizonDbFirewallRuleProperties.cs | 60 -- ...GroupConnectionProperties.Serialization.cs | 168 ---- ...zonDbParameterGroupConnectionProperties.cs | 47 - ...ctionPropertiesListResult.Serialization.cs | 176 ---- ...eterGroupConnectionPropertiesListResult.cs | 44 - ...bParameterGroupListResult.Serialization.cs | 176 ---- .../HorizonDbParameterGroupListResult.cs | 45 - ...izonDbParameterGroupPatch.Serialization.cs | 194 ----- .../Models/HorizonDbParameterGroupPatch.cs | 43 - ...bParameterGroupProperties.Serialization.cs | 233 ----- .../HorizonDbParameterGroupProperties.cs | 63 -- ...pPropertiesForPatchUpdate.Serialization.cs | 181 ---- ...bParameterGroupPropertiesForPatchUpdate.cs | 48 - .../HorizonDbPoolListResult.Serialization.cs | 176 ---- .../Models/HorizonDbPoolListResult.cs | 45 - .../HorizonDbPoolProperties.Serialization.cs | 224 ----- .../Models/HorizonDbPoolProperties.cs | 62 -- ...PrivateEndpointConnection.Serialization.cs | 184 ---- .../HorizonDbPrivateEndpointConnection.cs | 42 - ...vateEndpointConnectionProvisioningState.cs | 81 -- ...bPrivateEndpointServiceConnectionStatus.cs | 76 -- ...ateLinkResourceListResult.Serialization.cs | 176 ---- .../HorizonDbPrivateLinkResourceListResult.cs | 45 - ...ateLinkResourceProperties.Serialization.cs | 215 ----- .../HorizonDbPrivateLinkResourceProperties.cs | 49 -- ...inkServiceConnectionState.Serialization.cs | 167 ---- ...izonDbPrivateLinkServiceConnectionState.cs | 46 - ...orizonDbReplicaListResult.Serialization.cs | 176 ---- .../Models/HorizonDbReplicaListResult.cs | 45 - .../HorizonDbReplicaPatch.Serialization.cs | 156 ---- .../Generated/Models/HorizonDbReplicaPatch.cs | 53 -- ...orizonDbReplicaProperties.Serialization.cs | 203 ----- .../Models/HorizonDbReplicaProperties.cs | 56 -- ...aPropertiesForPatchUpdate.Serialization.cs | 145 --- ...orizonDbReplicaPropertiesForPatchUpdate.cs | 36 - .../Generated/Models/Network.Serialization.cs | 145 --- .../src/Generated/Models/Network.cs | 36 - ...rtiesUpdateableProperties.Serialization.cs | 160 ---- .../OptionalPropertiesUpdateableProperties.cs | 51 -- .../ParameterProperties.Serialization.cs | 251 ------ .../Generated/Models/ParameterProperties.cs | 76 -- .../Models/PrivateEndpoint.Serialization.cs | 146 ---- .../src/Generated/Models/PrivateEndpoint.cs | 37 - ...pointConnectionProperties.Serialization.cs | 210 ----- .../PrivateEndpointConnectionProperties.cs | 65 -- ...nectionResourceListResult.Serialization.cs | 176 ---- ...ateEndpointConnectionResourceListResult.cs | 45 - ...eEndpointConnectionUpdate.Serialization.cs | 156 ---- .../Models/PrivateEndpointConnectionUpdate.cs | 36 - .../src/Generated/Models/ProvisioningState.cs | 86 -- .../Models/PublicNetworkAccessState.cs | 71 -- .../src/Generated/Models/ReplicaRole.cs | 71 -- .../src/Generated/Models/State.cs | 101 --- .../Generated/Models/ZonePlacementPolicy.cs | 71 -- ...ndpointConnectionResource.Serialization.cs | 39 - .../PrivateEndpointConnectionResource.cs | 190 ---- ...ateEndpointConnectionResourceCollection.cs | 463 ---------- ...intConnectionResourceData.Serialization.cs | 184 ---- .../PrivateEndpointConnectionResourceData.cs | 43 - .../src/Generated/ProviderConstants.cs | 17 - .../HorizonDbClustersRestOperations.cs | 221 ----- .../HorizonDbFirewallRulesRestOperations.cs | 171 ---- .../HorizonDbParameterGroupsRestOperations.cs | 317 ------- .../HorizonDbPoolsRestOperations.cs | 114 --- ...rivateEndpointConnectionsRestOperations.cs | 159 ---- ...zonDbPrivateLinkResourcesRestOperations.cs | 114 --- .../HorizonDbReplicasRestOperations.cs | 199 ----- 164 files changed, 23235 deletions(-) delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDbModelFactory.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDbExtensions.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbArmClient.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs delete mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDbModelFactory.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDbModelFactory.cs deleted file mode 100644 index f33d76d10d02..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDbModelFactory.cs +++ /dev/null @@ -1,399 +0,0 @@ -// 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 deleted file mode 100644 index 4973cdd85711..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 428b507c0092..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs +++ /dev/null @@ -1,80 +0,0 @@ -// 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 deleted file mode 100644 index 74857dfdf62e..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,78 +0,0 @@ -// 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 deleted file mode 100644 index 17b03182afd5..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs +++ /dev/null @@ -1,77 +0,0 @@ -// 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 deleted file mode 100644 index a02d91ff1370..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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 deleted file mode 100644 index 93d3064d97cd..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs +++ /dev/null @@ -1,86 +0,0 @@ -// 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 deleted file mode 100644 index 29bd5254e325..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 2de3f2335d9e..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs +++ /dev/null @@ -1,80 +0,0 @@ -// 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 deleted file mode 100644 index abba06e0c003..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,78 +0,0 @@ -// 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 deleted file mode 100644 index b4f2693fa72f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs +++ /dev/null @@ -1,77 +0,0 @@ -// 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 deleted file mode 100644 index c401a501c2fc..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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 deleted file mode 100644 index d78e272e03b4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs +++ /dev/null @@ -1,83 +0,0 @@ -// 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 deleted file mode 100644 index bc9dffbaca82..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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 deleted file mode 100644 index 4988e58e06e2..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs +++ /dev/null @@ -1,86 +0,0 @@ -// 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 deleted file mode 100644 index aed64fdf814a..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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 deleted file mode 100644 index 526ef04957c5..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs +++ /dev/null @@ -1,83 +0,0 @@ -// 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 deleted file mode 100644 index c94ea3c1a1ee..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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 deleted file mode 100644 index f8f80a2dece4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs +++ /dev/null @@ -1,83 +0,0 @@ -// 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 deleted file mode 100644 index b2552fd64e60..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,84 +0,0 @@ -// 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 deleted file mode 100644 index 8cd54c6fddae..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs +++ /dev/null @@ -1,83 +0,0 @@ -// 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 deleted file mode 100644 index 52fa72d367eb..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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 deleted file mode 100644 index f8840a80d175..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs +++ /dev/null @@ -1,86 +0,0 @@ -// 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 deleted file mode 100644 index 6b72e22a17a1..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDbExtensions.cs +++ /dev/null @@ -1,427 +0,0 @@ -// 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 deleted file mode 100644 index cd2d686b8010..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbArmClient.cs +++ /dev/null @@ -1,92 +0,0 @@ -// 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 deleted file mode 100644 index f5b5496186db..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs +++ /dev/null @@ -1,389 +0,0 @@ -// 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 deleted file mode 100644 index dbb93ab5cc5b..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs +++ /dev/null @@ -1,159 +0,0 @@ -// 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 deleted file mode 100644 index 394d90253feb..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterCollection.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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), 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 deleted file mode 100644 index ac9c9734c8df..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.Serialization.cs +++ /dev/null @@ -1,229 +0,0 @@ -// 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 deleted file mode 100644 index 97d2f6c82ccf..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.cs +++ /dev/null @@ -1,46 +0,0 @@ -// 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 deleted file mode 100644 index 2fd0544e7e19..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 3521d2091a12..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs +++ /dev/null @@ -1,781 +0,0 @@ -// 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), 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 . - /// An object representing collection of HorizonDbPools and their operations over a HorizonDbPoolResource. - public virtual HorizonDbPoolCollection GetHorizonDbPools() - { - return GetCachedClient(client => new HorizonDbPoolCollection(client, Id)); - } - - /// Gets information about a HorizonDb pool. - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetHorizonDbPoolAsync(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - return await GetHorizonDbPools().GetAsync(poolName, cancellationToken).ConfigureAwait(false); - } - - /// Gets information about a HorizonDb pool. - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetHorizonDbPool(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - return GetHorizonDbPools().Get(poolName, cancellationToken); - } - - /// Gets a collection of PrivateEndpointConnectionResources in the . - /// An object representing collection of PrivateEndpointConnectionResources and their operations over a PrivateEndpointConnectionResource. - public virtual PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() - { - return GetCachedClient(client => new PrivateEndpointConnectionResourceCollection(client, Id)); - } - - /// Gets a private endpoint connection. - /// 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. - [ForwardsClientCalls] - public virtual async Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - return await GetPrivateEndpointConnectionResources().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); - } - - /// Gets a private endpoint connection. - /// 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. - [ForwardsClientCalls] - public virtual Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - return GetPrivateEndpointConnectionResources().Get(privateEndpointConnectionName, cancellationToken); - } - - /// Gets a collection of HorizonDbPrivateLinkResources in the . - /// An object representing collection of HorizonDbPrivateLinkResources and their operations over a HorizonDbPrivateLinkResource. - public virtual HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() - { - return GetCachedClient(client => new HorizonDbPrivateLinkResourceCollection(client, Id)); - } - - /// Gets a private link resource. - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - return await GetHorizonDbPrivateLinkResources().GetAsync(groupName, cancellationToken).ConfigureAwait(false); - } - - /// Gets a private link resource. - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetHorizonDbPrivateLinkResource(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - return GetHorizonDbPrivateLinkResources().Get(groupName, cancellationToken); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs deleted file mode 100644 index 1bf2e1a826d8..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs +++ /dev/null @@ -1,591 +0,0 @@ -// 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; - -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 GetHorizonDbFirewallRules method from an instance of . - /// - public partial class HorizonDbFirewallRuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _horizonDbFirewallRulesClientDiagnostics; - private readonly HorizonDbFirewallRules _horizonDbFirewallRulesRestClient; - - /// Initializes a new instance of HorizonDbFirewallRuleCollection for mocking. - protected HorizonDbFirewallRuleCollection() - { - } - - /// 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 HorizonDbFirewallRuleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(HorizonDbFirewallRuleResource.ResourceType, out string horizonDbFirewallRuleApiVersion); - _horizonDbFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbFirewallRuleResource.ResourceType.Namespace, Diagnostics); - _horizonDbFirewallRulesRestClient = new HorizonDbFirewallRules(_horizonDbFirewallRulesClientDiagnostics, Pipeline, Endpoint, horizonDbFirewallRuleApiVersion ?? "2026-01-20-preview"); - ValidateResourceId(id); - } - - /// - [Conditional("DEBUG")] - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != HorizonDbPoolResource.ResourceType) - { - throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbPoolResource.ResourceType), id); - } - } - - /// - /// Creates a new HorizonDb firewall rule or updates an existing rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_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 firewall rule. - /// 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 firewallRuleName, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.CreateOrUpdate"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, HorizonDbFirewallRuleData.ToRequestContent(data), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbFirewallRuleOperationSource(Client), - _horizonDbFirewallRulesClientDiagnostics, - 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 firewall rule or updates an existing rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_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 firewall rule. - /// 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 firewallRuleName, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.CreateOrUpdate"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, HorizonDbFirewallRuleData.ToRequestContent(data), context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbFirewallRuleOperationSource(Client), - _horizonDbFirewallRulesClientDiagnostics, - 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 firewall rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetAsync(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about a HorizonDb firewall rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Get(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists all HorizonDb firewall rules in a pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_List. - /// - /// - /// 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 HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT( - _horizonDbFirewallRulesRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Parent.Name, - Id.Name, - context), data => new HorizonDbFirewallRuleResource(Client, data)); - } - - /// - /// Lists all HorizonDb firewall rules in a pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_List. - /// - /// - /// 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 HorizonDbFirewallRulesGetAllCollectionResultOfT( - _horizonDbFirewallRulesRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Parent.Name, - Id.Name, - context), data => new HorizonDbFirewallRuleResource(Client, data)); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> ExistsAsync(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbFirewallRuleData)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}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Exists(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbFirewallRuleData)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}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetIfExistsAsync(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbFirewallRuleData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbFirewallRuleResource(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}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual NullableResponse GetIfExists(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbFirewallRuleData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbFirewallRuleResource(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/HorizonDbFirewallRuleData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs deleted file mode 100644 index 59e65f3116e2..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs +++ /dev/null @@ -1,194 +0,0 @@ -// 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 firewall rule. - public partial class HorizonDbFirewallRuleData : ResourceData, IJsonModel - { - /// 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 DeserializeHorizonDbFirewallRuleData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbFirewallRuleData)} 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(HorizonDbFirewallRuleData)} 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. - HorizonDbFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbFirewallRuleData)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(HorizonDbFirewallRuleData horizonDbFirewallRuleData) - { - if (horizonDbFirewallRuleData == null) - { - return null; - } - return RequestContent.Create(horizonDbFirewallRuleData, ModelSerializationExtensions.WireOptions); - } - - /// The to deserialize the from. - internal static HorizonDbFirewallRuleData FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbFirewallRuleData(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(HorizonDbFirewallRuleData)} 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. - HorizonDbFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbFirewallRuleData)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(HorizonDbFirewallRuleData)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbFirewallRuleData(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbFirewallRuleData DeserializeHorizonDbFirewallRuleData(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(); - HorizonDbFirewallRuleProperties 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbFirewallRuleProperties.DeserializeHorizonDbFirewallRuleProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbFirewallRuleData( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs deleted file mode 100644 index 20fd6aef89f5..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 firewall rule. - public partial class HorizonDbFirewallRuleData : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbFirewallRuleData() - { - } - - /// 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. - /// The resource-specific properties for this resource. - internal HorizonDbFirewallRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbFirewallRuleProperties properties) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - } - - /// The resource-specific properties for this resource. - public HorizonDbFirewallRuleProperties Properties { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs deleted file mode 100644 index d2f75728608c..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 HorizonDbFirewallRuleResource : IJsonModel - { - private static IJsonModel s_dataDeserializationInstance; - - private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbFirewallRuleData(); - - /// 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. - HorizonDbFirewallRuleData 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. - HorizonDbFirewallRuleData 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/HorizonDbFirewallRuleResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs deleted file mode 100644 index c8e951d539c7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs +++ /dev/null @@ -1,407 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Diagnostics; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - /// A class representing a HorizonDbFirewallRule 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 GetHorizonDbFirewallRules method. - /// - public partial class HorizonDbFirewallRuleResource : ArmResource - { - private readonly ClientDiagnostics _horizonDbFirewallRulesClientDiagnostics; - private readonly HorizonDbFirewallRules _horizonDbFirewallRulesRestClient; - private readonly HorizonDbFirewallRuleData _data; - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools/firewallRules"; - - /// Initializes a new instance of HorizonDbFirewallRuleResource for mocking. - protected HorizonDbFirewallRuleResource() - { - } - - /// Initializes a new instance of class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal HorizonDbFirewallRuleResource(ArmClient client, HorizonDbFirewallRuleData 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 HorizonDbFirewallRuleResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(ResourceType, out string horizonDbFirewallRuleApiVersion); - _horizonDbFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); - _horizonDbFirewallRulesRestClient = new HorizonDbFirewallRules(_horizonDbFirewallRulesClientDiagnostics, Pipeline, Endpoint, horizonDbFirewallRuleApiVersion ?? "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 HorizonDbFirewallRuleData 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. - /// The poolName. - /// The firewallRuleName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) - { - string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}"; - 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), id); - } - } - - /// - /// Gets information about a HorizonDb firewall rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about a HorizonDb firewall rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Deletes a HorizonDb firewall rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Delete"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbFirewallRulesClientDiagnostics, 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 firewall rule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Delete"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbFirewallRulesClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletionResponse(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Update a HorizonDbFirewallRule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_CreateOrUpdate. - /// - /// - /// 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. - /// Resource create parameters. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Update"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbFirewallRuleData.ToRequestContent(data), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbFirewallRuleOperationSource(Client), - _horizonDbFirewallRulesClientDiagnostics, - 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; - } - } - - /// - /// Update a HorizonDbFirewallRule. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. - /// - /// - /// Operation Id. - /// HorizonDbFirewallRules_CreateOrUpdate. - /// - /// - /// 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. - /// Resource create parameters. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Update"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbFirewallRuleData.ToRequestContent(data), context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbFirewallRuleOperationSource(Client), - _horizonDbFirewallRulesClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs deleted file mode 100644 index 6abbac43dd89..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs +++ /dev/null @@ -1,580 +0,0 @@ -// 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 GetHorizonDbParameterGroups method from an instance of . - /// - public partial class HorizonDbParameterGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics; - private readonly HorizonDbParameterGroups _horizonDbParameterGroupsRestClient; - - /// Initializes a new instance of HorizonDbParameterGroupCollection for mocking. - protected HorizonDbParameterGroupCollection() - { - } - - /// 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 HorizonDbParameterGroupCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(HorizonDbParameterGroupResource.ResourceType, out string horizonDbParameterGroupApiVersion); - _horizonDbParameterGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbParameterGroupResource.ResourceType.Namespace, Diagnostics); - _horizonDbParameterGroupsRestClient = new HorizonDbParameterGroups(_horizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, horizonDbParameterGroupApiVersion ?? "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), id); - } - } - - /// - /// Creates a new HorizonDb parameter group or updates an existing parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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 parameter group. - /// 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 parameterGroupName, HorizonDbParameterGroupData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.CreateOrUpdate"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, HorizonDbParameterGroupData.ToRequestContent(data), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbParameterGroupOperationSource(Client), - _horizonDbParameterGroupsClientDiagnostics, - 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 parameter group or updates an existing parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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 parameter group. - /// 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 parameterGroupName, HorizonDbParameterGroupData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.CreateOrUpdate"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, HorizonDbParameterGroupData.ToRequestContent(data), context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbParameterGroupOperationSource(Client), - _horizonDbParameterGroupsClientDiagnostics, - 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 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. - public virtual async Task> GetAsync(string parameterGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// 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. - public virtual Response Get(string parameterGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists all HorizonDb parameter groups in a resource group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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 HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbParameterGroupResource(Client, data)); - } - - /// - /// Lists all HorizonDb parameter groups in a resource group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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 HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbParameterGroupResource(Client, data)); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// 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. - public virtual async Task> ExistsAsync(string parameterGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbParameterGroupData)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/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. - public virtual Response Exists(string parameterGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbParameterGroupData)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/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. - public virtual async Task> GetIfExistsAsync(string parameterGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbParameterGroupData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbParameterGroupResource(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/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. - public virtual NullableResponse GetIfExists(string parameterGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbParameterGroupData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbParameterGroupResource(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/HorizonDbParameterGroupData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs deleted file mode 100644 index ea71b685c5d6..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs +++ /dev/null @@ -1,229 +0,0 @@ -// 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 parameter group. - public partial class HorizonDbParameterGroupData : TrackedResourceData, IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbParameterGroupData() - { - } - - /// 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 DeserializeHorizonDbParameterGroupData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupData)} 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(HorizonDbParameterGroupData)} 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. - HorizonDbParameterGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbParameterGroupData)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(HorizonDbParameterGroupData horizonDbParameterGroupData) - { - if (horizonDbParameterGroupData == null) - { - return null; - } - return RequestContent.Create(horizonDbParameterGroupData, ModelSerializationExtensions.WireOptions); - } - - /// The to deserialize the from. - internal static HorizonDbParameterGroupData FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbParameterGroupData(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(HorizonDbParameterGroupData)} 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. - HorizonDbParameterGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbParameterGroupData)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(HorizonDbParameterGroupData)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupData(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupData DeserializeHorizonDbParameterGroupData(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; - HorizonDbParameterGroupProperties 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 = HorizonDbParameterGroupProperties.DeserializeHorizonDbParameterGroupProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupData( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - tags ?? new ChangeTrackingDictionary(), - location, - properties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs deleted file mode 100644 index 05888670fbaf..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs +++ /dev/null @@ -1,46 +0,0 @@ -// 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 parameter group. - public partial class HorizonDbParameterGroupData : 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 HorizonDbParameterGroupData(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 HorizonDbParameterGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, HorizonDbParameterGroupProperties properties) : base(id, name, resourceType, systemData, tags, location) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - } - - /// The resource-specific properties for this resource. - public HorizonDbParameterGroupProperties Properties { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs deleted file mode 100644 index 5729577ef169..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 HorizonDbParameterGroupResource : IJsonModel - { - private static IJsonModel s_dataDeserializationInstance; - - private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbParameterGroupData(); - - /// 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. - HorizonDbParameterGroupData 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. - HorizonDbParameterGroupData 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/HorizonDbParameterGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs deleted file mode 100644 index 6d9990e2487a..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs +++ /dev/null @@ -1,824 +0,0 @@ -// 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 HorizonDbParameterGroup 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 GetHorizonDbParameterGroups method. - /// - public partial class HorizonDbParameterGroupResource : ArmResource - { - private readonly ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics; - private readonly HorizonDbParameterGroups _horizonDbParameterGroupsRestClient; - private readonly HorizonDbParameterGroupData _data; - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/parameterGroups"; - - /// Initializes a new instance of HorizonDbParameterGroupResource for mocking. - protected HorizonDbParameterGroupResource() - { - } - - /// Initializes a new instance of class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal HorizonDbParameterGroupResource(ArmClient client, HorizonDbParameterGroupData 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 HorizonDbParameterGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(ResourceType, out string horizonDbParameterGroupApiVersion); - _horizonDbParameterGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); - _horizonDbParameterGroupsRestClient = new HorizonDbParameterGroups(_horizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, horizonDbParameterGroupApiVersion ?? "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 HorizonDbParameterGroupData 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 parameterGroupName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) - { - string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}"; - 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), 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. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// 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. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Updates an existing HorizonDb parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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, HorizonDbParameterGroupPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Update"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbParameterGroupPatch.ToRequestContent(patch), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbParameterGroupOperationSource(Client), - _horizonDbParameterGroupsClientDiagnostics, - 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 parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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, HorizonDbParameterGroupPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Update"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbParameterGroupPatch.ToRequestContent(patch), context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbParameterGroupOperationSource(Client), - _horizonDbParameterGroupsClientDiagnostics, - 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 parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Delete"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbParameterGroupsClientDiagnostics, 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 parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Delete"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbParameterGroupsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbParameterGroupsClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletionResponse(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists parameter groups filtered by version number. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_ListVersions. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The version number to filter by. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetVersionsAsync(int? version = default, CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new AsyncPageableWrapper(new HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT( - _horizonDbParameterGroupsRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Name, - version, - context), data => new HorizonDbParameterGroupResource(Client, data)); - } - - /// - /// Lists parameter groups filtered by version number. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_ListVersions. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The version number to filter by. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetVersions(int? version = default, CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new PageableWrapper(new HorizonDbParameterGroupsGetVersionsCollectionResultOfT( - _horizonDbParameterGroupsRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Name, - version, - context), data => new HorizonDbParameterGroupResource(Client, data)); - } - - /// - /// Gets all connections to a parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_ListConnections. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetConnectionsAsync(CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - } - - /// - /// Gets all connections to a parameter group. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections. - /// - /// - /// Operation Id. - /// HorizonDbParameterGroups_ListConnections. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetConnections(CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new HorizonDbParameterGroupsGetConnectionsCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - } - - /// 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - else - { - HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); - 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - else - { - HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; - HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); - 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - else - { - HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); - 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - else - { - HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; - HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); - 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - else - { - HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); - 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); - return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); - } - else - { - HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; - HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); - 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; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs deleted file mode 100644 index 634a2964d180..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs +++ /dev/null @@ -1,463 +0,0 @@ -// 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; - -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 GetHorizonDbPools method from an instance of . - /// - public partial class HorizonDbPoolCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _horizonDbPoolsClientDiagnostics; - private readonly HorizonDbPools _horizonDbPoolsRestClient; - - /// Initializes a new instance of HorizonDbPoolCollection for mocking. - protected HorizonDbPoolCollection() - { - } - - /// 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 HorizonDbPoolCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(HorizonDbPoolResource.ResourceType, out string horizonDbPoolApiVersion); - _horizonDbPoolsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbPoolResource.ResourceType.Namespace, Diagnostics); - _horizonDbPoolsRestClient = new HorizonDbPools(_horizonDbPoolsClientDiagnostics, Pipeline, Endpoint, horizonDbPoolApiVersion ?? "2026-01-20-preview"); - ValidateResourceId(id); - } - - /// - [Conditional("DEBUG")] - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != HorizonDbClusterResource.ResourceType) - { - throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); - } - } - - /// - /// Gets information about a HorizonDb pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetAsync(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about a HorizonDb pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Get(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists all HorizonDb pools in a cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools. - /// - /// - /// Operation Id. - /// HorizonDbPools_List. - /// - /// - /// 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 HorizonDbPoolsGetAllAsyncCollectionResultOfT(_horizonDbPoolsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPoolResource(Client, data)); - } - - /// - /// Lists all HorizonDb pools in a cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools. - /// - /// - /// Operation Id. - /// HorizonDbPools_List. - /// - /// - /// 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 HorizonDbPoolsGetAllCollectionResultOfT(_horizonDbPoolsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPoolResource(Client, data)); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> ExistsAsync(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPoolData)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}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Exists(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPoolData)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}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetIfExistsAsync(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPoolData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPoolResource(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}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb pool. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual NullableResponse GetIfExists(string poolName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPoolData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPoolResource(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/HorizonDbPoolData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs deleted file mode 100644 index e930d1d7bab9..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs +++ /dev/null @@ -1,223 +0,0 @@ -// 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 pool. - public partial class HorizonDbPoolData : ResourceData, IJsonModel - { - /// 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 DeserializeHorizonDbPoolData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPoolData)} 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(HorizonDbPoolData)} 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. - HorizonDbPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPoolData)PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbPoolData FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbPoolData(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(HorizonDbPoolData)} does not support writing '{format}' format."); - } - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - if (item.Value == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPoolData)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(HorizonDbPoolData)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPoolData(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPoolData DeserializeHorizonDbPoolData(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(); - HorizonDbPoolProperties properties = default; - IDictionary tags = 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbPoolProperties.DeserializeHorizonDbPoolProperties(prop.Value, options); - 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 (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPoolData( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties, - tags ?? new ChangeTrackingDictionary()); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs deleted file mode 100644 index 05778059e227..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs +++ /dev/null @@ -1,49 +0,0 @@ -// 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 pool. - public partial class HorizonDbPoolData : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal HorizonDbPoolData() - { - Tags = new ChangeTrackingDictionary(); - } - - /// 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. - /// The resource-specific properties for this resource. - /// Resource tags. - internal HorizonDbPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPoolProperties properties, IDictionary tags) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - Tags = tags; - } - - /// The resource-specific properties for this resource. - public HorizonDbPoolProperties Properties { get; } - - /// Resource tags. - public IDictionary Tags { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs deleted file mode 100644 index c94cc9b38798..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 HorizonDbPoolResource : IJsonModel - { - private static IJsonModel s_dataDeserializationInstance; - - private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPoolData(); - - /// 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. - HorizonDbPoolData 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. - HorizonDbPoolData 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/HorizonDbPoolResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs deleted file mode 100644 index ba23b6bb97af..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Diagnostics; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - /// A class representing a HorizonDbPool 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 GetHorizonDbPools method. - /// - public partial class HorizonDbPoolResource : ArmResource - { - private readonly ClientDiagnostics _horizonDbPoolsClientDiagnostics; - private readonly HorizonDbPools _horizonDbPoolsRestClient; - private readonly HorizonDbPoolData _data; - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools"; - - /// Initializes a new instance of HorizonDbPoolResource for mocking. - protected HorizonDbPoolResource() - { - } - - /// Initializes a new instance of class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal HorizonDbPoolResource(ArmClient client, HorizonDbPoolData 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 HorizonDbPoolResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(ResourceType, out string horizonDbPoolApiVersion); - _horizonDbPoolsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); - _horizonDbPoolsRestClient = new HorizonDbPools(_horizonDbPoolsClientDiagnostics, Pipeline, Endpoint, horizonDbPoolApiVersion ?? "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 HorizonDbPoolData 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. - /// The poolName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) - { - string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}"; - 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), id); - } - } - - /// - /// Gets information about a HorizonDb pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_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 = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about a HorizonDb pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. - /// - /// - /// Operation Id. - /// HorizonDbPools_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets a collection of HorizonDbReplicas in the . - /// An object representing collection of HorizonDbReplicas and their operations over a HorizonDbReplicaResource. - public virtual HorizonDbReplicaCollection GetHorizonDbReplicas() - { - return GetCachedClient(client => new HorizonDbReplicaCollection(client, Id)); - } - - /// Gets information about a HorizonDb replica. - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetHorizonDbReplicaAsync(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - return await GetHorizonDbReplicas().GetAsync(replicaName, cancellationToken).ConfigureAwait(false); - } - - /// Gets information about a HorizonDb replica. - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetHorizonDbReplica(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - return GetHorizonDbReplicas().Get(replicaName, cancellationToken); - } - - /// Gets a collection of HorizonDbFirewallRules in the . - /// An object representing collection of HorizonDbFirewallRules and their operations over a HorizonDbFirewallRuleResource. - public virtual HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() - { - return GetCachedClient(client => new HorizonDbFirewallRuleCollection(client, Id)); - } - - /// Gets information about a HorizonDb firewall rule. - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - return await GetHorizonDbFirewallRules().GetAsync(firewallRuleName, cancellationToken).ConfigureAwait(false); - } - - /// Gets information about a HorizonDb firewall rule. - /// The name of the HorizonDb firewall rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetHorizonDbFirewallRule(string firewallRuleName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); - - return GetHorizonDbFirewallRules().Get(firewallRuleName, cancellationToken); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs deleted file mode 100644 index 58bc94d2ea50..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 HorizonDbPrivateLinkResource : IJsonModel - { - private static IJsonModel s_dataDeserializationInstance; - - private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPrivateLinkResourceData(); - - /// 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. - HorizonDbPrivateLinkResourceData 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. - HorizonDbPrivateLinkResourceData 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/HorizonDbPrivateLinkResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs deleted file mode 100644 index ccf0b75cc054..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Diagnostics; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - /// A class representing a HorizonDbPrivateLinkResource 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 GetHorizonDbPrivateLinkResources method. - /// - public partial class HorizonDbPrivateLinkResource : ArmResource - { - private readonly ClientDiagnostics _horizonDbPrivateLinkResourcesClientDiagnostics; - private readonly HorizonDbPrivateLinkResources _horizonDbPrivateLinkResourcesRestClient; - private readonly HorizonDbPrivateLinkResourceData _data; - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/privateLinkResources"; - - /// Initializes a new instance of HorizonDbPrivateLinkResource for mocking. - protected HorizonDbPrivateLinkResource() - { - } - - /// Initializes a new instance of class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal HorizonDbPrivateLinkResource(ArmClient client, HorizonDbPrivateLinkResourceData 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 HorizonDbPrivateLinkResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(ResourceType, out string horizonDbPrivateLinkResourceApiVersion); - _horizonDbPrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); - _horizonDbPrivateLinkResourcesRestClient = new HorizonDbPrivateLinkResources(_horizonDbPrivateLinkResourcesClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateLinkResourceApiVersion ?? "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 HorizonDbPrivateLinkResourceData 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. - /// The groupName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) - { - string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}"; - 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), id); - } - } - - /// - /// Gets a private link resource. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_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 = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a private link resource. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs deleted file mode 100644 index c3abd5a379c2..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs +++ /dev/null @@ -1,463 +0,0 @@ -// 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; - -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 GetHorizonDbPrivateLinkResources method from an instance of . - /// - public partial class HorizonDbPrivateLinkResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _horizonDbPrivateLinkResourcesClientDiagnostics; - private readonly HorizonDbPrivateLinkResources _horizonDbPrivateLinkResourcesRestClient; - - /// Initializes a new instance of HorizonDbPrivateLinkResourceCollection for mocking. - protected HorizonDbPrivateLinkResourceCollection() - { - } - - /// 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 HorizonDbPrivateLinkResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(HorizonDbPrivateLinkResource.ResourceType, out string horizonDbPrivateLinkResourceApiVersion); - _horizonDbPrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbPrivateLinkResource.ResourceType.Namespace, Diagnostics); - _horizonDbPrivateLinkResourcesRestClient = new HorizonDbPrivateLinkResources(_horizonDbPrivateLinkResourcesClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateLinkResourceApiVersion ?? "2026-01-20-preview"); - ValidateResourceId(id); - } - - /// - [Conditional("DEBUG")] - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != HorizonDbClusterResource.ResourceType) - { - throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); - } - } - - /// - /// Gets a private link resource. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetAsync(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a private link resource. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Get(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists private link resources in a HorizonDb cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_List. - /// - /// - /// 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 HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT(_horizonDbPrivateLinkResourcesRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateLinkResource(Client, data)); - } - - /// - /// Lists private link resources in a HorizonDb cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_List. - /// - /// - /// 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 HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT(_horizonDbPrivateLinkResourcesRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateLinkResource(Client, data)); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> ExistsAsync(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPrivateLinkResourceData)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}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Exists(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPrivateLinkResourceData)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}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetIfExistsAsync(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPrivateLinkResourceData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPrivateLinkResource(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}/privateLinkResources/{groupName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateLinkResources_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the private link resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual NullableResponse GetIfExists(string groupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); - - using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbPrivateLinkResourceData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbPrivateLinkResource(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/HorizonDbPrivateLinkResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs deleted file mode 100644 index ee99d4462a65..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs +++ /dev/null @@ -1,184 +0,0 @@ -// 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 private link resource. - public partial class HorizonDbPrivateLinkResourceData : ResourceData, IJsonModel - { - /// 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 DeserializeHorizonDbPrivateLinkResourceData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceData)} 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(HorizonDbPrivateLinkResourceData)} 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. - HorizonDbPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPrivateLinkResourceData)PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbPrivateLinkResourceData FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbPrivateLinkResourceData(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(HorizonDbPrivateLinkResourceData)} 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. - HorizonDbPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPrivateLinkResourceData)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(HorizonDbPrivateLinkResourceData)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPrivateLinkResourceData(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPrivateLinkResourceData DeserializeHorizonDbPrivateLinkResourceData(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(); - HorizonDbPrivateLinkResourceProperties 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbPrivateLinkResourceProperties.DeserializeHorizonDbPrivateLinkResourceProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPrivateLinkResourceData( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs deleted file mode 100644 index c5c5614c183c..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 private link resource. - public partial class HorizonDbPrivateLinkResourceData : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal HorizonDbPrivateLinkResourceData() - { - } - - /// 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. - /// The resource-specific properties for this resource. - internal HorizonDbPrivateLinkResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPrivateLinkResourceProperties properties) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - } - - /// The resource-specific properties for this resource. - public HorizonDbPrivateLinkResourceProperties Properties { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs deleted file mode 100644 index 06c878113312..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs +++ /dev/null @@ -1,591 +0,0 @@ -// 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; - -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 GetHorizonDbReplicas method from an instance of . - /// - public partial class HorizonDbReplicaCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _horizonDbReplicasClientDiagnostics; - private readonly HorizonDbReplicas _horizonDbReplicasRestClient; - - /// Initializes a new instance of HorizonDbReplicaCollection for mocking. - protected HorizonDbReplicaCollection() - { - } - - /// 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 HorizonDbReplicaCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(HorizonDbReplicaResource.ResourceType, out string horizonDbReplicaApiVersion); - _horizonDbReplicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbReplicaResource.ResourceType.Namespace, Diagnostics); - _horizonDbReplicasRestClient = new HorizonDbReplicas(_horizonDbReplicasClientDiagnostics, Pipeline, Endpoint, horizonDbReplicaApiVersion ?? "2026-01-20-preview"); - ValidateResourceId(id); - } - - /// - [Conditional("DEBUG")] - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != HorizonDbPoolResource.ResourceType) - { - throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbPoolResource.ResourceType), id); - } - } - - /// - /// Creates a new HorizonDb replica or updates an existing replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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 replica. - /// 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 replicaName, HorizonDbReplicaData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.CreateOrUpdate"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, HorizonDbReplicaData.ToRequestContent(data), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbReplicaOperationSource(Client), - _horizonDbReplicasClientDiagnostics, - 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 replica or updates an existing replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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 replica. - /// 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 replicaName, HorizonDbReplicaData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - Argument.AssertNotNull(data, nameof(data)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.CreateOrUpdate"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, HorizonDbReplicaData.ToRequestContent(data), context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbReplicaOperationSource(Client), - _horizonDbReplicasClientDiagnostics, - 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 replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetAsync(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about a HorizonDb replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Get(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists all HorizonDb replicas in a pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_List. - /// - /// - /// 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 HorizonDbReplicasGetAllAsyncCollectionResultOfT( - _horizonDbReplicasRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Parent.Name, - Id.Name, - context), data => new HorizonDbReplicaResource(Client, data)); - } - - /// - /// Lists all HorizonDb replicas in a pool. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_List. - /// - /// - /// 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 HorizonDbReplicasGetAllCollectionResultOfT( - _horizonDbReplicasRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Parent.Name, - Id.Name, - context), data => new HorizonDbReplicaResource(Client, data)); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> ExistsAsync(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbReplicaData)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}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual Response Exists(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbReplicaData)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}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual async Task> GetIfExistsAsync(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbReplicaData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbReplicaResource(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}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// The name of the HorizonDb replica. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public virtual NullableResponse GetIfExists(string replicaName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((HorizonDbReplicaData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbReplicaResource(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/HorizonDbReplicaData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs deleted file mode 100644 index d7495238bb48..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs +++ /dev/null @@ -1,194 +0,0 @@ -// 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 replica. - public partial class HorizonDbReplicaData : ResourceData, IJsonModel - { - /// 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 DeserializeHorizonDbReplicaData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbReplicaData)} 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(HorizonDbReplicaData)} 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. - HorizonDbReplicaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbReplicaData)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(HorizonDbReplicaData horizonDbReplicaData) - { - if (horizonDbReplicaData == null) - { - return null; - } - return RequestContent.Create(horizonDbReplicaData, ModelSerializationExtensions.WireOptions); - } - - /// The to deserialize the from. - internal static HorizonDbReplicaData FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbReplicaData(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(HorizonDbReplicaData)} 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. - HorizonDbReplicaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbReplicaData)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(HorizonDbReplicaData)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbReplicaData(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbReplicaData DeserializeHorizonDbReplicaData(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(); - HorizonDbReplicaProperties 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbReplicaProperties.DeserializeHorizonDbReplicaProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbReplicaData( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs deleted file mode 100644 index dbd4b0b14be7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 replica. - public partial class HorizonDbReplicaData : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbReplicaData() - { - } - - /// 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. - /// The resource-specific properties for this resource. - internal HorizonDbReplicaData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbReplicaProperties properties) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - } - - /// The resource-specific properties for this resource. - public HorizonDbReplicaProperties Properties { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs deleted file mode 100644 index a1b5bb957850..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 HorizonDbReplicaResource : IJsonModel - { - private static IJsonModel s_dataDeserializationInstance; - - private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbReplicaData(); - - /// 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. - HorizonDbReplicaData 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. - HorizonDbReplicaData 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/HorizonDbReplicaResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs deleted file mode 100644 index 61716a949548..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -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; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - /// A class representing a HorizonDbReplica 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 GetHorizonDbReplicas method. - /// - public partial class HorizonDbReplicaResource : ArmResource - { - private readonly ClientDiagnostics _horizonDbReplicasClientDiagnostics; - private readonly HorizonDbReplicas _horizonDbReplicasRestClient; - private readonly HorizonDbReplicaData _data; - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools/replicas"; - - /// Initializes a new instance of HorizonDbReplicaResource for mocking. - protected HorizonDbReplicaResource() - { - } - - /// Initializes a new instance of class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal HorizonDbReplicaResource(ArmClient client, HorizonDbReplicaData 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 HorizonDbReplicaResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(ResourceType, out string horizonDbReplicaApiVersion); - _horizonDbReplicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); - _horizonDbReplicasRestClient = new HorizonDbReplicas(_horizonDbReplicasClientDiagnostics, Pipeline, Endpoint, horizonDbReplicaApiVersion ?? "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 HorizonDbReplicaData 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. - /// The poolName. - /// The replicaName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) - { - string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}"; - 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), id); - } - } - - /// - /// Gets information about a HorizonDb replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about a HorizonDb replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Updates an existing HorizonDb replica (e.g., role). - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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, HorizonDbReplicaPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Update"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbReplicaPatch.ToRequestContent(patch), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbReplicaOperationSource(Client), - _horizonDbReplicasClientDiagnostics, - 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 replica (e.g., role). - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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, HorizonDbReplicaPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Update"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbReplicaPatch.ToRequestContent(patch), context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation( - new HorizonDbReplicaOperationSource(Client), - _horizonDbReplicasClientDiagnostics, - 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 replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Delete"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbReplicasClientDiagnostics, 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 replica. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. - /// - /// - /// Operation Id. - /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Delete"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbReplicasRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); - Response response = Pipeline.ProcessMessage(message, context); - HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbReplicasClientDiagnostics, 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/Internal/Argument.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs deleted file mode 100644 index bca04f32fa95..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class Argument - { - /// The value. - /// The name. - public static void AssertNotNull(T value, string name) - { - if (value is null) - { - throw new ArgumentNullException(name); - } - } - - /// The value. - /// The name. - public static void AssertNotNull(T? value, string name) - where T : struct - { - if (!value.HasValue) - { - throw new ArgumentNullException(name); - } - } - - /// The value. - /// The name. - public static void AssertNotNullOrEmpty(IEnumerable value, string name) - { - if (value is null) - { - throw new ArgumentNullException(name); - } - if (value is ICollection collectionOfT && collectionOfT.Count == 0) - { - throw new ArgumentException("Value cannot be an empty collection.", name); - } - if (value is ICollection collection && collection.Count == 0) - { - throw new ArgumentException("Value cannot be an empty collection.", name); - } - using IEnumerator e = value.GetEnumerator(); - if (!e.MoveNext()) - { - throw new ArgumentException("Value cannot be an empty collection.", name); - } - } - - /// The value. - /// The name. - public static void AssertNotNullOrEmpty(string value, string name) - { - if (value is null) - { - throw new ArgumentNullException(name); - } - if (value.Length == 0) - { - throw new ArgumentException("Value cannot be an empty string.", name); - } - } - - /// The value. - /// The name. - public static void AssertNotNullOrWhiteSpace(string value, string name) - { - if (value is null) - { - throw new ArgumentNullException(name); - } - if (string.IsNullOrWhiteSpace(value)) - { - throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); - } - } - - /// The value. - /// The minimum value. - /// The maximum value. - /// The name. - public static void AssertInRange(T value, T minimum, T maximum, string name) - where T : notnull, IComparable - { - if (minimum.CompareTo(value) > 0) - { - throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); - } - if (maximum.CompareTo(value) < 0) - { - throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); - } - } - - /// The value. - /// The name. - public static string CheckNotNullOrEmpty(string value, string name) - { - AssertNotNullOrEmpty(value, name); - return value; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs deleted file mode 100644 index 78e425d1fa6b..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs +++ /dev/null @@ -1,48 +0,0 @@ -// 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; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class AsyncPageableWrapper : AsyncPageable - { - /// The source async pageable value of type AsyncPageable<T>. - private AsyncPageable _source; - /// The converter function from T to U. - private Func _converter; - - /// Initializes a new instance of the AsyncPageableWrapper class. - /// The source async pageable value of type AsyncPageable<T>. - /// The converter function from T to U. - public AsyncPageableWrapper(AsyncPageable source, Func converter) - { - _source = source; - _converter = converter; - } - - /// Converts the pages from AsyncPageable to Page. - /// A continuation token from a previous response. - /// An optional hint to specify the desired size of each page. - /// An enumerable of pages containing converted items of type U. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - await foreach (Page page in _source.AsPages(continuationToken, pageSizeHint).ConfigureAwait(false)) - { - List convertedItems = new List(); - foreach (T item in page.Values) - { - convertedItems.Add(_converter.Invoke(item)); - } - yield return Page.FromValues(convertedItems, page.ContinuationToken, page.GetRawResponse()); - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs deleted file mode 100644 index 405ef9951982..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary - where TKey : notnull - { - private IDictionary _innerDictionary; - - public ChangeTrackingDictionary() - { - } - - /// The inner dictionary. - public ChangeTrackingDictionary(IDictionary dictionary) - { - if (dictionary == null) - { - return; - } - _innerDictionary = new Dictionary(dictionary); - } - - /// The inner dictionary. - public ChangeTrackingDictionary(IReadOnlyDictionary dictionary) - { - if (dictionary == null) - { - return; - } - _innerDictionary = new Dictionary(); - foreach (var pair in dictionary) - { - _innerDictionary.Add(pair); - } - } - - /// Gets the IsUndefined. - public bool IsUndefined => _innerDictionary == null; - - /// Gets the Count. - public int Count => IsUndefined ? 0 : EnsureDictionary().Count; - - /// Gets the IsReadOnly. - public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly; - - /// Gets the Keys. - public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys; - - /// Gets the Values. - public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values; - - /// Gets or sets the value associated with the specified key. - public TValue this[TKey key] - { - get - { - if (IsUndefined) - { - throw new KeyNotFoundException(nameof(key)); - } - return EnsureDictionary()[key]; - } - set - { - EnsureDictionary()[key] = value; - } - } - - /// Gets the Keys. - IEnumerable IReadOnlyDictionary.Keys => Keys; - - /// Gets the Values. - IEnumerable IReadOnlyDictionary.Values => Values; - - public IEnumerator> GetEnumerator() - { - if (IsUndefined) - { - IEnumerator> enumerateEmpty() - { - yield break; - } - return enumerateEmpty(); - } - return EnsureDictionary().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - - /// The item to add. - public void Add(KeyValuePair item) - { - EnsureDictionary().Add(item); - } - - public void Clear() - { - EnsureDictionary().Clear(); - } - - /// The item to search for. - public bool Contains(KeyValuePair item) - { - if (IsUndefined) - { - return false; - } - return EnsureDictionary().Contains(item); - } - - /// The array to copy. - /// The index. - public void CopyTo(KeyValuePair[] array, int index) - { - if (IsUndefined) - { - return; - } - EnsureDictionary().CopyTo(array, index); - } - - /// The item to remove. - public bool Remove(KeyValuePair item) - { - if (IsUndefined) - { - return false; - } - return EnsureDictionary().Remove(item); - } - - /// The key. - /// The value to add. - public void Add(TKey key, TValue value) - { - EnsureDictionary().Add(key, value); - } - - /// The key to search for. - public bool ContainsKey(TKey key) - { - if (IsUndefined) - { - return false; - } - return EnsureDictionary().ContainsKey(key); - } - - /// The key. - public bool Remove(TKey key) - { - if (IsUndefined) - { - return false; - } - return EnsureDictionary().Remove(key); - } - - /// The key to search for. - /// The value. - public bool TryGetValue(TKey key, out TValue value) - { - if (IsUndefined) - { - value = default; - return false; - } - return EnsureDictionary().TryGetValue(key, out value); - } - - public IDictionary EnsureDictionary() - { - return _innerDictionary ??= new Dictionary(); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs deleted file mode 100644 index 956a9795b3b7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class ChangeTrackingList : IList, IReadOnlyList - { - private IList _innerList; - - public ChangeTrackingList() - { - } - - /// The inner list. - public ChangeTrackingList(IList innerList) - { - if (innerList != null) - { - _innerList = innerList; - } - } - - /// The inner list. - public ChangeTrackingList(IReadOnlyList innerList) - { - if (innerList != null) - { - _innerList = innerList.ToList(); - } - } - - /// Gets the IsUndefined. - public bool IsUndefined => _innerList == null; - - /// Gets the Count. - public int Count => IsUndefined ? 0 : EnsureList().Count; - - /// Gets the IsReadOnly. - public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; - - /// Gets or sets the value associated with the specified key. - public T this[int index] - { - get - { - if (IsUndefined) - { - throw new ArgumentOutOfRangeException(nameof(index)); - } - return EnsureList()[index]; - } - set - { - if (IsUndefined) - { - throw new ArgumentOutOfRangeException(nameof(index)); - } - EnsureList()[index] = value; - } - } - - public void Reset() - { - _innerList = null; - } - - public IEnumerator GetEnumerator() - { - if (IsUndefined) - { - IEnumerator enumerateEmpty() - { - yield break; - } - return enumerateEmpty(); - } - return EnsureList().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - - /// The item to add. - public void Add(T item) - { - EnsureList().Add(item); - } - - public void Clear() - { - EnsureList().Clear(); - } - - /// The item. - public bool Contains(T item) - { - if (IsUndefined) - { - return false; - } - return EnsureList().Contains(item); - } - - /// The array to copy to. - /// The array index. - public void CopyTo(T[] array, int arrayIndex) - { - if (IsUndefined) - { - return; - } - EnsureList().CopyTo(array, arrayIndex); - } - - /// The item. - public bool Remove(T item) - { - if (IsUndefined) - { - return false; - } - return EnsureList().Remove(item); - } - - /// The item. - public int IndexOf(T item) - { - if (IsUndefined) - { - return -1; - } - return EnsureList().IndexOf(item); - } - - /// The inner list. - /// The item. - public void Insert(int index, T item) - { - EnsureList().Insert(index, item); - } - - /// The inner list. - public void RemoveAt(int index) - { - if (IsUndefined) - { - throw new ArgumentOutOfRangeException(nameof(index)); - } - EnsureList().RemoveAt(index); - } - - public IList EnsureList() - { - return _innerList ??= new List(); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs deleted file mode 100644 index b674986d996e..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class ClientPipelineExtensions - { - public static async ValueTask ProcessMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) - { - (CancellationToken userCancellationToken, ErrorOptions errorOptions) = context.Parse(); - await pipeline.SendAsync(message, userCancellationToken).ConfigureAwait(false); - - if (message.Response.IsError && (errorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) - { - throw new RequestFailedException(message.Response); - } - - return message.Response; - } - - public static Response ProcessMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) - { - (CancellationToken userCancellationToken, ErrorOptions errorOptions) = context.Parse(); - pipeline.Send(message, userCancellationToken); - - if (message.Response.IsError && (errorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) - { - throw new RequestFailedException(message.Response); - } - - return message.Response; - } - - public static async ValueTask> ProcessHeadAsBoolMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) - { - Response response = await pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - switch (response.Status) - { - case >= 200 and < 300: - return Response.FromValue(true, response); - case >= 400 and < 500: - return Response.FromValue(false, response); - default: - return new ErrorResult(response, new RequestFailedException(response)); - } - } - - public static Response ProcessHeadAsBoolMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) - { - Response response = pipeline.ProcessMessage(message, context); - switch (response.Status) - { - case >= 200 and < 300: - return Response.FromValue(true, response); - case >= 400 and < 500: - return Response.FromValue(false, response); - default: - return new ErrorResult(response, new RequestFailedException(response)); - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs deleted file mode 100644 index 72778edeb7e4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Microsoft.TypeSpec.Generator.Customizations -{ - [AttributeUsage((AttributeTargets.Property | AttributeTargets.Field))] - internal partial class CodeGenMemberAttribute : CodeGenTypeAttribute - { - /// The original name of the member. - public CodeGenMemberAttribute(string originalName) : base(originalName) - { - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs deleted file mode 100644 index dfcabf517497..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Microsoft.TypeSpec.Generator.Customizations -{ - [AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct), AllowMultiple = true, Inherited = true)] - internal partial class CodeGenSerializationAttribute : Attribute - { - /// The property name which these hooks apply to. - public CodeGenSerializationAttribute(string propertyName) - { - PropertyName = propertyName; - } - - /// The property name which these hooks apply to. - /// The serialization name of the property. - public CodeGenSerializationAttribute(string propertyName, string serializationName) - { - PropertyName = propertyName; - SerializationName = serializationName; - } - - /// Gets or sets the property name which these hooks should apply to. - public string PropertyName { get; } - - /// Gets or sets the serialization name of the property. - public string SerializationName { get; set; } - - /// - /// Gets or sets the method name to use when serializing the property value (property name excluded). - /// The signature of the serialization hook method must be or compatible with when invoking: private void SerializeHook(Utf8JsonWriter writer); - /// - public string SerializationValueHook { get; set; } - - /// - /// Gets or sets the method name to use when deserializing the property value from the JSON. - /// private static void DeserializationHook(JsonProperty property, ref TypeOfTheProperty propertyValue); // if the property is required - /// private static void DeserializationHook(JsonProperty property, ref Optional<TypeOfTheProperty> propertyValue); // if the property is optional - /// - public string DeserializationValueHook { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs deleted file mode 100644 index 38d536e69173..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Microsoft.TypeSpec.Generator.Customizations -{ - [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct), AllowMultiple = true)] - internal partial class CodeGenSuppressAttribute : Attribute - { - /// The member to suppress. - /// The types of the parameters of the member. - public CodeGenSuppressAttribute(string member, params Type[] parameters) - { - Member = member; - Parameters = parameters; - } - - /// Gets the Member. - public string Member { get; } - - /// Gets the Parameters. - public Type[] Parameters { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs deleted file mode 100644 index f36b5f513173..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Microsoft.TypeSpec.Generator.Customizations -{ - [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct))] - internal partial class CodeGenTypeAttribute : Attribute - { - /// The original name of the type. - public CodeGenTypeAttribute(string originalName) - { - OriginalName = originalName; - } - - /// Gets the OriginalName. - public string OriginalName { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs deleted file mode 100644 index 569c4b59d031..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class ErrorResult : Response - { - private readonly Response _response; - private readonly RequestFailedException _exception; - - public ErrorResult(Response response, RequestFailedException exception) - { - _response = response; - _exception = exception; - } - - /// Gets the Value. - public override T Value => throw _exception; - - /// - public override Response GetRawResponse() - { - return _response; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs deleted file mode 100644 index 7487a473e7c8..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs +++ /dev/null @@ -1,268 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Text.Json; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class ModelSerializationExtensions - { - internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); - internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions - { - MaxDepth = 256 - }; - - public static object GetObject(this JsonElement element) - { - switch (element.ValueKind) - { - case JsonValueKind.String: - return element.GetString(); - case JsonValueKind.Number: - if (element.TryGetInt32(out int intValue)) - { - return intValue; - } - if (element.TryGetInt64(out long longValue)) - { - return longValue; - } - return element.GetDouble(); - case JsonValueKind.True: - return true; - case JsonValueKind.False: - return false; - case JsonValueKind.Undefined: - case JsonValueKind.Null: - return null; - case JsonValueKind.Object: - Dictionary dictionary = new Dictionary(); - foreach (var jsonProperty in element.EnumerateObject()) - { - dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); - } - return dictionary; - case JsonValueKind.Array: - List list = new List(); - foreach (var item in element.EnumerateArray()) - { - list.Add(item.GetObject()); - } - return list.ToArray(); - default: - throw new NotSupportedException($"Not supported value kind {element.ValueKind}"); - } - } - - public static byte[] GetBytesFromBase64(this JsonElement element, string format) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - - return format switch - { - "U" => TypeFormatters.FromBase64UrlString(element.GetRequiredString()), - "D" => element.GetBytesFromBase64(), - _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) - }; - } - - public static DateTimeOffset GetDateTimeOffset(this JsonElement element, string format) => format switch - { - "U" when element.ValueKind == JsonValueKind.Number => DateTimeOffset.FromUnixTimeSeconds(element.GetInt64()), - _ => TypeFormatters.ParseDateTimeOffset(element.GetString(), format) - }; - - public static TimeSpan GetTimeSpan(this JsonElement element, string format) => TypeFormatters.ParseTimeSpan(element.GetString(), format); - - public static char GetChar(this JsonElement element) - { - if (element.ValueKind == JsonValueKind.String) - { - string text = element.GetString(); - if (text == null || text.Length != 1) - { - throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); - } - return text[0]; - } - else - { - throw new NotSupportedException($"Cannot convert {element.ValueKind} to a char"); - } - } - - [Conditional("DEBUG")] - public static void ThrowNonNullablePropertyIsNull(this JsonProperty @property) - { - throw new JsonException($"A property '{@property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); - } - - public static string GetRequiredString(this JsonElement element) - { - string value = element.GetString(); - if (value == null) - { - throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); - } - return value; - } - - public static void WriteStringValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) - { - writer.WriteStringValue(TypeFormatters.ToString(value, format)); - } - - public static void WriteStringValue(this Utf8JsonWriter writer, DateTime value, string format) - { - writer.WriteStringValue(TypeFormatters.ToString(value, format)); - } - - public static void WriteStringValue(this Utf8JsonWriter writer, TimeSpan value, string format) - { - writer.WriteStringValue(TypeFormatters.ToString(value, format)); - } - - public static void WriteStringValue(this Utf8JsonWriter writer, char value) - { - writer.WriteStringValue(value.ToString(CultureInfo.InvariantCulture)); - } - - public static void WriteBase64StringValue(this Utf8JsonWriter writer, byte[] value, string format) - { - if (value == null) - { - writer.WriteNullValue(); - return; - } - switch (format) - { - case "U": - writer.WriteStringValue(TypeFormatters.ToBase64UrlString(value)); - break; - case "D": - writer.WriteBase64StringValue(value); - break; - default: - throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)); - } - } - - public static void WriteNumberValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) - { - if (format != "U") - { - throw new ArgumentOutOfRangeException(nameof(format), "Only 'U' format is supported when writing a DateTimeOffset as a Number."); - } - writer.WriteNumberValue(value.ToUnixTimeSeconds()); - } - - public static void WriteObjectValue(this Utf8JsonWriter writer, T value, ModelReaderWriterOptions options = null) - { - switch (value) - { - case null: - writer.WriteNullValue(); - break; - case IJsonModel jsonModel: - jsonModel.Write(writer, options ?? WireOptions); - break; - case byte[] bytes: - writer.WriteBase64StringValue(bytes); - break; - case BinaryData bytes0: - writer.WriteBase64StringValue(bytes0); - break; - case JsonElement json: - json.WriteTo(writer); - break; - case int i: - writer.WriteNumberValue(i); - break; - case decimal d: - writer.WriteNumberValue(d); - break; - case double d0: - if (double.IsNaN(d0)) - { - writer.WriteStringValue("NaN"); - } - else - { - writer.WriteNumberValue(d0); - } - break; - case float f: - writer.WriteNumberValue(f); - break; - case long l: - writer.WriteNumberValue(l); - break; - case string s: - writer.WriteStringValue(s); - break; - case bool b: - writer.WriteBooleanValue(b); - break; - case Guid g: - writer.WriteStringValue(g); - break; - case DateTimeOffset dateTimeOffset: - writer.WriteStringValue(dateTimeOffset, "O"); - break; - case DateTime dateTime: - writer.WriteStringValue(dateTime, "O"); - break; - case IEnumerable> enumerable: - writer.WriteStartObject(); - foreach (var pair in enumerable) - { - writer.WritePropertyName(pair.Key); - writer.WriteObjectValue(pair.Value, options); - } - writer.WriteEndObject(); - break; - case IEnumerable objectEnumerable: - writer.WriteStartArray(); - foreach (var item in objectEnumerable) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - break; - case TimeSpan timeSpan: - writer.WriteStringValue(timeSpan, "P"); - break; - default: - throw new NotSupportedException($"Not supported type {value.GetType()}"); - } - } - - public static void WriteObjectValue(this Utf8JsonWriter writer, object value, ModelReaderWriterOptions options = null) - { - writer.WriteObjectValue(value, options); - } - - public static BinaryData GetUtf8Bytes(this JsonElement element) - { -#if NET9_0_OR_GREATER - return new global::System.BinaryData(global::System.Runtime.InteropServices.JsonMarshal.GetRawUtf8Value(element).ToArray()); -#else - return BinaryData.FromString(element.GetRawText()); -#endif - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs deleted file mode 100644 index 245e9bf41d07..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class Optional - { - public static bool IsCollectionDefined(IEnumerable collection) - { - return !(collection is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined); - } - - public static bool IsCollectionDefined(IDictionary collection) - { - return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); - } - - public static bool IsCollectionDefined(IReadOnlyDictionary collection) - { - return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); - } - - public static bool IsDefined(T? value) - where T : struct - { - return value.HasValue; - } - - public static bool IsDefined(object value) - { - return value != null; - } - - public static bool IsDefined(string value) - { - return value != null; - } - - public static bool IsDefined(JsonElement value) - { - return value.ValueKind != JsonValueKind.Undefined; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs deleted file mode 100644 index 8fa01cc13c70..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class PageableWrapper : Pageable - { - /// The source pageable value of type Pageable<T>. - private Pageable _source; - /// The converter function from T to U. - private Func _converter; - - /// Initializes a new instance of the PageableWrapper class. - /// The source pageable value of type Pageable<T>. - /// The converter function from T to U. - public PageableWrapper(Pageable source, Func converter) - { - _source = source; - _converter = converter; - } - - /// Converts the pages from Pageable to Page. - /// A continuation token from a previous response. - /// An optional hint to specify the desired size of each page. - /// An enumerable of pages containing converted items of type U. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - foreach (Page page in _source.AsPages(continuationToken, pageSizeHint)) - { - List convertedItems = new List(); - foreach (T item in page.Values) - { - convertedItems.Add(_converter.Invoke(item)); - } - yield return Page.FromValues(convertedItems, page.ContinuationToken, page.GetRawResponse()); - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs deleted file mode 100644 index 6ccb3a909416..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Linq; -using Azure.Core; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class RawRequestUriBuilderExtensions - { - public static void AppendQueryDelimited(this RawRequestUriBuilder builder, string name, IEnumerable value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true) - { - delimiter ??= ","; - IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format)); - builder.AppendQuery(name, string.Join(delimiter, stringValues), escape); - } - - public static void UpdateQuery(this RawRequestUriBuilder builder, string name, string value) - { - string currentQuery = builder.Query; - string searchPattern = string.Concat(name, "="); - int paramStartIndex = -1; - if (currentQuery.StartsWith(string.Concat("?", searchPattern))) - { - paramStartIndex = 1; - } - if (paramStartIndex == -1) - { - string prefixedPattern = string.Concat("&", searchPattern); - int prefixedIndex = currentQuery.IndexOf(prefixedPattern); - if (prefixedIndex >= 0) - { - paramStartIndex = prefixedIndex + 1; - } - } - if (paramStartIndex >= 0) - { - int valueStartIndex = paramStartIndex + searchPattern.Length; - int valueEndIndex = currentQuery.IndexOf('&', valueStartIndex); - if (valueEndIndex == -1) - { - valueEndIndex = currentQuery.Length; - } - string beforeParam = currentQuery.Substring(0, valueStartIndex); - string afterParam = currentQuery.Substring(valueEndIndex); - string newQuery = string.Concat(beforeParam, value, afterParam); - builder.Query = newQuery; - } - else - { - builder.AppendQuery(name, value, true); - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs deleted file mode 100644 index ebef33052755..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using Azure; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class RequestContextExtensions - { - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - public static ValueTuple Parse(this RequestContext context) - { - if (context == null) - { - return (CancellationToken.None, ErrorOptions.Default); - } - return (context.CancellationToken, context.ErrorOptions); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs deleted file mode 100644 index c0727b5226ff..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.HorizonDb -{ - internal enum SerializationFormat - { - /// The default serialization format. - Default = 0, - /// The RFC1123 date time format. - DateTime_RFC1123 = 1, - /// The RFC3339 date time format. - DateTime_RFC3339 = 2, - /// The RFC7231 date time format. - DateTime_RFC7231 = 3, - /// The ISO8601 date time format. - DateTime_ISO8601 = 4, - /// The Unix date time format. - DateTime_Unix = 5, - /// The ISO8601 date format. - Date_ISO8601 = 6, - /// The ISO8601 duration format. - Duration_ISO8601 = 7, - /// The constant duration format. - Duration_Constant = 8, - /// The seconds duration format. - Duration_Seconds = 9, - /// The seconds duration format with float precision. - Duration_Seconds_Float = 10, - /// The seconds duration format with double precision. - Duration_Seconds_Double = 11, - /// The milliseconds duration format. - Duration_Milliseconds = 12, - /// The milliseconds duration format with float precision. - Duration_Milliseconds_Float = 13, - /// The milliseconds duration format with double precision. - Duration_Milliseconds_Double = 14, - /// The ISO8601 time format. - Time_ISO8601 = 15, - /// The Base64Url bytes format. - Bytes_Base64Url = 16, - /// The Base64 bytes format. - Bytes_Base64 = 17 - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs deleted file mode 100644 index 390edd9fe7ff..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Xml; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class TypeFormatters - { - private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; - public const string DefaultNumberFormat = "G"; - - public static string ToString(bool value) => value ? "true" : "false"; - - public static string ToString(DateTime value, string format) => value.Kind switch - { - DateTimeKind.Utc => ToString((DateTimeOffset)value, format), - _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Generated clients require it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") - }; - - public static string ToString(DateTimeOffset value, string format) => format switch - { - "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), - "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), - "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), - "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), - "R" => value.ToString("r", CultureInfo.InvariantCulture), - _ => value.ToString(format, CultureInfo.InvariantCulture) - }; - - public static string ToString(TimeSpan value, string format) => format switch - { - "P" => XmlConvert.ToString(value), - _ => value.ToString(format, CultureInfo.InvariantCulture) - }; - - public static string ToString(byte[] value, string format) => format switch - { - "U" => ToBase64UrlString(value), - "D" => Convert.ToBase64String(value), - _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) - }; - - public static string ToBase64UrlString(byte[] value) - { - int numWholeOrPartialInputBlocks = checked (value.Length + 2) / 3; - int size = checked (numWholeOrPartialInputBlocks * 4); - char[] output = new char[size]; - - int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); - - int i = 0; - for (; i < numBase64Chars; i++) - { - char ch = output[i]; - if (ch == '+') - { - output[i] = '-'; - } - else - { - if (ch == '/') - { - output[i] = '_'; - } - else - { - if (ch == '=') - { - break; - } - } - } - } - - return new string(output, 0, i); - } - - public static byte[] FromBase64UrlString(string value) - { - int paddingCharsToAdd = (value.Length % 4) switch - { - 0 => 0, - 2 => 2, - 3 => 1, - _ => throw new InvalidOperationException("Malformed input") - }; - char[] output = new char[(value.Length + paddingCharsToAdd)]; - int i = 0; - for (; i < value.Length; i++) - { - char ch = value[i]; - if (ch == '-') - { - output[i] = '+'; - } - else - { - if (ch == '_') - { - output[i] = '/'; - } - else - { - output[i] = ch; - } - } - } - - for (; i < output.Length; i++) - { - output[i] = '='; - } - - return Convert.FromBase64CharArray(output, 0, output.Length); - } - - public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch - { - "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), - _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) - }; - - public static TimeSpan ParseTimeSpan(string value, string format) => format switch - { - "P" => XmlConvert.ToTimeSpan(value), - _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) - }; - - public static string ToFormatSpecifier(SerializationFormat format) => format switch - { - SerializationFormat.DateTime_RFC1123 => "R", - SerializationFormat.DateTime_RFC3339 => "O", - SerializationFormat.DateTime_RFC7231 => "R", - SerializationFormat.DateTime_ISO8601 => "O", - SerializationFormat.Date_ISO8601 => "D", - SerializationFormat.DateTime_Unix => "U", - SerializationFormat.Bytes_Base64Url => "U", - SerializationFormat.Bytes_Base64 => "D", - SerializationFormat.Duration_ISO8601 => "P", - SerializationFormat.Duration_Constant => "c", - SerializationFormat.Duration_Seconds => "%s", - SerializationFormat.Duration_Seconds_Float => "s\\.FFF", - SerializationFormat.Duration_Seconds_Double => "s\\.FFFFFF", - SerializationFormat.Time_ISO8601 => "T", - _ => null - }; - - public static string ConvertToString(object value, SerializationFormat format = SerializationFormat.Default) - { - string formatSpecifier = ToFormatSpecifier(format); - - return value switch - { - null => "null", - string s => s, - bool b => ToString(b), - int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), - byte[] b0 when formatSpecifier != null => ToString(b0, formatSpecifier), - IEnumerable s0 => string.Join(",", s0), - DateTimeOffset dateTime when formatSpecifier != null => ToString(dateTime, formatSpecifier), - TimeSpan timeSpan when format == SerializationFormat.Duration_Seconds => Convert.ToInt32(timeSpan.TotalSeconds).ToString(CultureInfo.InvariantCulture), - TimeSpan timeSpan0 when format == SerializationFormat.Duration_Seconds_Float || format == SerializationFormat.Duration_Seconds_Double => timeSpan0.TotalSeconds.ToString(CultureInfo.InvariantCulture), - TimeSpan timeSpan1 when format == SerializationFormat.Duration_Milliseconds => Convert.ToInt32(timeSpan1.TotalMilliseconds).ToString(CultureInfo.InvariantCulture), - TimeSpan timeSpan2 when format == SerializationFormat.Duration_Milliseconds_Float || format == SerializationFormat.Duration_Milliseconds_Double => timeSpan2.TotalMilliseconds.ToString(CultureInfo.InvariantCulture), - TimeSpan timeSpan3 when formatSpecifier != null => ToString(timeSpan3, formatSpecifier), - TimeSpan timeSpan4 => XmlConvert.ToString(timeSpan4), - Guid guid => guid.ToString(), - BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), - _ => value.ToString() - }; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs deleted file mode 100644 index cbe6e72774be..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperation.cs +++ /dev/null @@ -1,106 +0,0 @@ -// 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; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbArmOperation : ArmOperation - { - private readonly OperationInternal _operation; - private readonly RehydrationToken? _completeRehydrationToken; - private readonly NextLinkOperationImplementation _nextLinkOperation; - private readonly string _operationId; - - /// Initializes a new instance of HorizonDbArmOperation for mocking. - protected HorizonDbArmOperation() - { - } - - /// - /// The operation response. - /// The token to rehydrate the operation. - internal HorizonDbArmOperation(Response response, RehydrationToken? rehydrationToken = null) - { - _operation = OperationInternal.Succeeded(response); - _completeRehydrationToken = rehydrationToken; - _operationId = GetOperationId(rehydrationToken); - } - - /// - /// The instance of . - /// The instance of . - /// The operation request. - /// The operation response. - /// The finalStateVia of the operation. - /// If should skip Api version override. - /// The Api version override value. - internal HorizonDbArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) - { - IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); - if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationImplementation) - { - _nextLinkOperation = nextLinkOperationImplementation; - _operationId = _nextLinkOperation.OperationId; - } - else - { - _completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia); - _operationId = GetOperationId(_completeRehydrationToken); - } - _operation = new OperationInternal( - nextLinkOperation, - clientDiagnostics, - response, - "HorizonDbArmOperation", - null, - new SequentialDelayStrategy()); - } - - /// Gets the Id. - public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet; - - /// Gets the HasCompleted. - public override bool HasCompleted => _operation.HasCompleted; - - /// The token to rehydrate a long-running operation. - private string GetOperationId(RehydrationToken? rehydrationToken) - { - return rehydrationToken?.Id; - } - - /// - public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken; - - /// - public override Response GetRawResponse() => _operation.RawResponse; - - /// - public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); - - /// - public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); - - /// - public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken); - - /// - public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken); - - /// - public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken); - - /// - public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken); - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs deleted file mode 100644 index 3dd811edf323..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbArmOperationOfT.cs +++ /dev/null @@ -1,113 +0,0 @@ -// 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; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbArmOperation : ArmOperation - { - private readonly OperationInternal _operation; - private readonly RehydrationToken? _completeRehydrationToken; - private readonly NextLinkOperationImplementation _nextLinkOperation; - private readonly string _operationId; - - /// Initializes a new instance of HorizonDbArmOperation for mocking. - protected HorizonDbArmOperation() - { - } - - /// - /// The operation response. - /// The token to rehydrate the operation. - internal HorizonDbArmOperation(Response response, RehydrationToken? rehydrationToken = null) - { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); - _completeRehydrationToken = rehydrationToken; - _operationId = GetOperationId(rehydrationToken); - } - - /// - /// The instance of . - /// The instance of . - /// The instance of . - /// The operation request. - /// The operation response. - /// The finalStateVia of the operation. - /// If should skip Api version override. - /// The Api version override value. - internal HorizonDbArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) - { - IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); - if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationImplementation) - { - _nextLinkOperation = nextLinkOperationImplementation; - _operationId = _nextLinkOperation.OperationId; - } - else - { - _completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia); - _operationId = GetOperationId(_completeRehydrationToken); - } - _operation = new OperationInternal( - NextLinkOperationImplementation.Create(source, nextLinkOperation), - clientDiagnostics, - response, - "HorizonDbArmOperation", - null, - new SequentialDelayStrategy()); - } - - /// Gets the Id. - public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet; - - /// Gets the Value. - public override T Value => _operation.Value; - - /// Gets the HasValue. - public override bool HasValue => _operation.HasValue; - - /// Gets the HasCompleted. - public override bool HasCompleted => _operation.HasCompleted; - - /// The token to rehydrate a long-running operation. - private string GetOperationId(RehydrationToken? rehydrationToken) - { - return rehydrationToken?.Id; - } - - /// - public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken; - - /// - public override Response GetRawResponse() => _operation.RawResponse; - - /// - public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); - - /// - public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); - - /// - public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken); - - /// - public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken); - - /// - public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); - - /// - public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs deleted file mode 100644 index 19aaf5c7ab63..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - internal partial class HorizonDbClusterOperationSource : IOperationSource - { - private readonly ArmClient _client; - - /// - /// - internal HorizonDbClusterOperationSource(ArmClient client) - { - _client = client; - } - - /// The response from the service. - /// The cancellation token to use. - /// - HorizonDbClusterResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - HorizonDbClusterData data = HorizonDbClusterData.DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbClusterResource(_client, data); - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - HorizonDbClusterData data = HorizonDbClusterData.DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbClusterResource(_client, data); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs deleted file mode 100644 index b36a22cce321..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - internal partial class HorizonDbFirewallRuleOperationSource : IOperationSource - { - private readonly ArmClient _client; - - /// - /// - internal HorizonDbFirewallRuleOperationSource(ArmClient client) - { - _client = client; - } - - /// The response from the service. - /// The cancellation token to use. - /// - HorizonDbFirewallRuleResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - HorizonDbFirewallRuleData data = HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbFirewallRuleResource(_client, data); - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - HorizonDbFirewallRuleData data = HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbFirewallRuleResource(_client, data); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs deleted file mode 100644 index cca2ba40d315..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - internal partial class HorizonDbParameterGroupOperationSource : IOperationSource - { - private readonly ArmClient _client; - - /// - /// - internal HorizonDbParameterGroupOperationSource(ArmClient client) - { - _client = client; - } - - /// The response from the service. - /// The cancellation token to use. - /// - HorizonDbParameterGroupResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - HorizonDbParameterGroupData data = HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbParameterGroupResource(_client, data); - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - HorizonDbParameterGroupData data = HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbParameterGroupResource(_client, data); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs deleted file mode 100644 index 73c3c854b36d..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbPrivateEndpointConnectionOperationSource.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager.HorizonDb.Models; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - internal partial class HorizonDbPrivateEndpointConnectionOperationSource : IOperationSource - { - /// - internal HorizonDbPrivateEndpointConnectionOperationSource() - { - } - - /// The response from the service. - /// The cancellation token to use. - /// - HorizonDbPrivateEndpointConnection IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - HorizonDbPrivateEndpointConnection result = HorizonDbPrivateEndpointConnection.DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, ModelSerializationExtensions.WireOptions); - return result; - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - HorizonDbPrivateEndpointConnection result = HorizonDbPrivateEndpointConnection.DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, ModelSerializationExtensions.WireOptions); - return result; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs deleted file mode 100644 index 8368fe365b87..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - internal partial class HorizonDbReplicaOperationSource : IOperationSource - { - private readonly ArmClient _client; - - /// - /// - internal HorizonDbReplicaOperationSource(ArmClient client) - { - _client = client; - } - - /// The response from the service. - /// The cancellation token to use. - /// - HorizonDbReplicaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - HorizonDbReplicaData data = HorizonDbReplicaData.DeserializeHorizonDbReplicaData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbReplicaResource(_client, data); - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - HorizonDbReplicaData data = HorizonDbReplicaData.DeserializeHorizonDbReplicaData(document.RootElement, ModelSerializationExtensions.WireOptions); - return new HorizonDbReplicaResource(_client, data); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs deleted file mode 100644 index 04522265d6e4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDbContext.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.ClientModel.Primitives; -using Azure; -using Azure.ResourceManager.HorizonDb.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - /// Context class which will be filled in by the System.ClientModel.SourceGeneration. - /// For more information - /// - [ModelReaderWriterBuildable(typeof(HorizonDbClusterData))] - [ModelReaderWriterBuildable(typeof(HorizonDbClusterListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbClusterParameterGroupConnectionProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbClusterPatch))] - [ModelReaderWriterBuildable(typeof(HorizonDbClusterProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbClusterPropertiesForPatchUpdate))] - [ModelReaderWriterBuildable(typeof(HorizonDbClusterResource))] - [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleData))] - [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleResource))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupConnectionProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupConnectionPropertiesListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupData))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPatch))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPropertiesForPatchUpdate))] - [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupResource))] - [ModelReaderWriterBuildable(typeof(HorizonDbPoolData))] - [ModelReaderWriterBuildable(typeof(HorizonDbPoolListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbPoolProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbPoolResource))] - [ModelReaderWriterBuildable(typeof(HorizonDbPrivateEndpointConnection))] - [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResource))] - [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceData))] - [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkServiceConnectionState))] - [ModelReaderWriterBuildable(typeof(HorizonDbReplicaData))] - [ModelReaderWriterBuildable(typeof(HorizonDbReplicaListResult))] - [ModelReaderWriterBuildable(typeof(HorizonDbReplicaPatch))] - [ModelReaderWriterBuildable(typeof(HorizonDbReplicaProperties))] - [ModelReaderWriterBuildable(typeof(HorizonDbReplicaPropertiesForPatchUpdate))] - [ModelReaderWriterBuildable(typeof(HorizonDbReplicaResource))] - [ModelReaderWriterBuildable(typeof(Network))] - [ModelReaderWriterBuildable(typeof(OptionalPropertiesUpdateableProperties))] - [ModelReaderWriterBuildable(typeof(ParameterProperties))] - [ModelReaderWriterBuildable(typeof(PrivateEndpoint))] - [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionProperties))] - [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResource))] - [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResourceData))] - [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResourceListResult))] - [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionUpdate))] - [ModelReaderWriterBuildable(typeof(ResponseError))] - [ModelReaderWriterBuildable(typeof(SystemData))] - public partial class AzureResourceManagerHorizonDbContext : ModelReaderWriterContext - { - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs deleted file mode 100644 index e15ca26a55ce..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The mode to create a new HorizonDb cluster. - public readonly partial struct CreateModeCluster : IEquatable - { - private readonly string _value; - /// Create a new cluster. - private const string CreateValue = "Create"; - /// Update an existing cluster. - private const string UpdateValue = "Update"; - /// Create cluster from point-in-time restore. - private const string PointInTimeRestoreValue = "PointInTimeRestore"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public CreateModeCluster(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Create a new cluster. - public static CreateModeCluster Create { get; } = new CreateModeCluster(CreateValue); - - /// Update an existing cluster. - public static CreateModeCluster Update { get; } = new CreateModeCluster(UpdateValue); - - /// Create cluster from point-in-time restore. - public static CreateModeCluster PointInTimeRestore { get; } = new CreateModeCluster(PointInTimeRestoreValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(CreateModeCluster left, CreateModeCluster right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(CreateModeCluster left, CreateModeCluster right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator CreateModeCluster(string value) => new CreateModeCluster(value); - - /// Converts a string to a . - /// The value. - public static implicit operator CreateModeCluster?(string value) => value == null ? null : new CreateModeCluster(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CreateModeCluster other && Equals(other); - - /// - public bool Equals(CreateModeCluster other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs deleted file mode 100644 index 836f60aa8d67..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The mode to create a new HorizonDb cluster. - public readonly partial struct CreateModePool : IEquatable - { - private readonly string _value; - /// Create a new pool. - private const string CreateValue = "Create"; - /// Update an existing pool. - private const string UpdateValue = "Update"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public CreateModePool(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Create a new pool. - public static CreateModePool Create { get; } = new CreateModePool(CreateValue); - - /// Update an existing pool. - public static CreateModePool Update { get; } = new CreateModePool(UpdateValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(CreateModePool left, CreateModePool right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(CreateModePool left, CreateModePool right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator CreateModePool(string value) => new CreateModePool(value); - - /// Converts a string to a . - /// The value. - public static implicit operator CreateModePool?(string value) => value == null ? null : new CreateModePool(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CreateModePool other && Equals(other); - - /// - public bool Equals(CreateModePool other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs deleted file mode 100644 index 920b6bf738ef..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbCluster list operation. - internal partial class HorizonDbClusterListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbClusterListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterListResult 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 DeserializeHorizonDbClusterListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbClusterListResult)} 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(HorizonDbClusterListResult)} 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. - HorizonDbClusterListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbClusterListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbClusterListResult(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 virtual 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(HorizonDbClusterListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbClusterData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbClusterListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterListResult 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(HorizonDbClusterListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbClusterListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbClusterListResult DeserializeHorizonDbClusterListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbClusterData.DeserializeHorizonDbClusterData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbClusterListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs deleted file mode 100644 index d9766edf1ff1..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbCluster list operation. - internal partial class HorizonDbClusterListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbCluster items on this page. - internal HorizonDbClusterListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbCluster items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbClusterListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbCluster items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs deleted file mode 100644 index c515ede771c5..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Connection information for HorizonDb parameter group. - public partial class HorizonDbClusterParameterGroupConnectionProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterParameterGroupConnectionProperties 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 DeserializeHorizonDbClusterParameterGroupConnectionProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbClusterParameterGroupConnectionProperties)} 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(HorizonDbClusterParameterGroupConnectionProperties)} 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. - HorizonDbClusterParameterGroupConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbClusterParameterGroupConnectionProperties)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } - if (options.Format != "W" && Optional.IsDefined(SyncStatus)) - { - writer.WritePropertyName("syncStatus"u8); - writer.WriteStringValue(SyncStatus); - } - if (Optional.IsDefined(ApplyImmediately)) - { - writer.WritePropertyName("applyImmediately"u8); - writer.WriteBooleanValue(ApplyImmediately.Value); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbClusterParameterGroupConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterParameterGroupConnectionProperties 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(HorizonDbClusterParameterGroupConnectionProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbClusterParameterGroupConnectionProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbClusterParameterGroupConnectionProperties DeserializeHorizonDbClusterParameterGroupConnectionProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - string syncStatus = default; - bool? applyImmediately = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - 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("syncStatus"u8)) - { - syncStatus = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("applyImmediately"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - applyImmediately = prop.Value.GetBoolean(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbClusterParameterGroupConnectionProperties(id, syncStatus, applyImmediately, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs deleted file mode 100644 index 6da14e01325b..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Connection information for HorizonDb parameter group. - public partial class HorizonDbClusterParameterGroupConnectionProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbClusterParameterGroupConnectionProperties() - { - } - - /// Initializes a new instance of . - /// 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. - /// Keeps track of any properties unknown to the library. - internal HorizonDbClusterParameterGroupConnectionProperties(ResourceIdentifier id, string syncStatus, bool? applyImmediately, IDictionary additionalBinaryDataProperties) - { - Id = id; - SyncStatus = syncStatus; - ApplyImmediately = applyImmediately; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The resource ID of the connected parameter group. - public ResourceIdentifier Id { get; set; } - - /// Indication of if parameter group is applied on HorizonDb resource. - public string SyncStatus { get; } - - /// Indicates whether the parameters should be applied immediately. - public bool? ApplyImmediately { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs deleted file mode 100644 index 838cb5289670..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// HorizonDb cluster for update operations. - public partial class HorizonDbClusterPatch : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterPatch 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 DeserializeHorizonDbClusterPatch(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbClusterPatch)} 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(HorizonDbClusterPatch)} 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. - HorizonDbClusterPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbClusterPatch horizonDbClusterPatch) - { - if (horizonDbClusterPatch == null) - { - return null; - } - return RequestContent.Create(horizonDbClusterPatch, 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 virtual 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(HorizonDbClusterPatch)} does not support writing '{format}' format."); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - if (item.Value == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbClusterPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterPatch 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(HorizonDbClusterPatch)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbClusterPatch(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbClusterPatch DeserializeHorizonDbClusterPatch(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IDictionary tags = default; - HorizonDbClusterPropertiesForPatchUpdate properties = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbClusterPropertiesForPatchUpdate.DeserializeHorizonDbClusterPropertiesForPatchUpdate(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbClusterPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs deleted file mode 100644 index ceb956198e32..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// HorizonDb cluster for update operations. - public partial class HorizonDbClusterPatch - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbClusterPatch() - { - Tags = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of . - /// Resource tags. - /// The properties that can be updated for a HorizonDb cluster. - /// Keeps track of any properties unknown to the library. - internal HorizonDbClusterPatch(IDictionary tags, HorizonDbClusterPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) - { - Tags = tags; - Properties = properties; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Resource tags. - public IDictionary Tags { get; } - - /// The properties that can be updated for a HorizonDb cluster. - public HorizonDbClusterPropertiesForPatchUpdate Properties { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs deleted file mode 100644 index c0ece010253d..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs +++ /dev/null @@ -1,378 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb cluster. - public partial class HorizonDbClusterProperties : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbClusterProperties() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterProperties 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 DeserializeHorizonDbClusterProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbClusterProperties)} 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(HorizonDbClusterProperties)} 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. - HorizonDbClusterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbClusterProperties)} does not support writing '{format}' format."); - } - writer.WritePropertyName("administratorLogin"u8); - writer.WriteStringValue(AdministratorLogin); - if (Optional.IsDefined(AdministratorLoginPassword)) - { - writer.WritePropertyName("administratorLoginPassword"u8); - writer.WriteStringValue(AdministratorLoginPassword); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(CreateMode)) - { - writer.WritePropertyName("createMode"u8); - writer.WriteStringValue(CreateMode.Value.ToString()); - } - if (Optional.IsDefined(PointInTimeUTC)) - { - writer.WritePropertyName("pointInTimeUTC"u8); - writer.WriteStringValue(PointInTimeUTC.Value, "O"); - } - if (Optional.IsDefined(SourceClusterResourceId)) - { - writer.WritePropertyName("sourceClusterResourceId"u8); - writer.WriteStringValue(SourceClusterResourceId); - } - if (Optional.IsDefined(PoolName)) - { - writer.WritePropertyName("poolName"u8); - writer.WriteStringValue(PoolName); - } - if (Optional.IsDefined(ReplicaCount)) - { - writer.WritePropertyName("replicaCount"u8); - writer.WriteNumberValue(ReplicaCount.Value); - } - if (Optional.IsDefined(VCores)) - { - writer.WritePropertyName("vCores"u8); - writer.WriteNumberValue(VCores.Value); - } - if (Optional.IsDefined(ProcessorType)) - { - writer.WritePropertyName("processorType"u8); - writer.WriteStringValue(ProcessorType); - } - if (Optional.IsDefined(Network)) - { - writer.WritePropertyName("network"u8); - writer.WriteObjectValue(Network, options); - } - if (options.Format != "W" && Optional.IsDefined(State)) - { - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(FullyQualifiedDomainName)) - { - writer.WritePropertyName("fullyQualifiedDomainName"u8); - writer.WriteStringValue(FullyQualifiedDomainName); - } - if (options.Format != "W" && Optional.IsDefined(ReadonlyEndpoint)) - { - writer.WritePropertyName("readonlyEndpoint"u8); - writer.WriteStringValue(ReadonlyEndpoint); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (Optional.IsDefined(ZonePlacementPolicy)) - { - writer.WritePropertyName("zonePlacementPolicy"u8); - writer.WriteStringValue(ZonePlacementPolicy.Value.ToString()); - } - if (Optional.IsDefined(ParameterGroup)) - { - writer.WritePropertyName("parameterGroup"u8); - writer.WriteObjectValue(ParameterGroup, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbClusterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterProperties 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(HorizonDbClusterProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbClusterProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - 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; - Network network = default; - State? state = default; - string fullyQualifiedDomainName = default; - string readonlyEndpoint = default; - ProvisioningState? provisioningState = default; - ZonePlacementPolicy? zonePlacementPolicy = default; - HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("administratorLogin"u8)) - { - administratorLogin = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("administratorLoginPassword"u8)) - { - administratorLoginPassword = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("version"u8)) - { - version = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("createMode"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createMode = new CreateModeCluster(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("pointInTimeUTC"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - pointInTimeUTC = prop.Value.GetDateTimeOffset("O"); - continue; - } - if (prop.NameEquals("sourceClusterResourceId"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - sourceClusterResourceId = new ResourceIdentifier(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("poolName"u8)) - { - poolName = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("replicaCount"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - replicaCount = prop.Value.GetInt32(); - continue; - } - if (prop.NameEquals("vCores"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - vCores = prop.Value.GetInt32(); - continue; - } - if (prop.NameEquals("processorType"u8)) - { - processorType = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("network"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - network = Network.DeserializeNetwork(prop.Value, options); - continue; - } - if (prop.NameEquals("state"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - state = new State(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("fullyQualifiedDomainName"u8)) - { - fullyQualifiedDomainName = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("readonlyEndpoint"u8)) - { - readonlyEndpoint = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("provisioningState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new ProvisioningState(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("zonePlacementPolicy"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - zonePlacementPolicy = new ZonePlacementPolicy(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("parameterGroup"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - parameterGroup = HorizonDbClusterParameterGroupConnectionProperties.DeserializeHorizonDbClusterParameterGroupConnectionProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbClusterProperties( - administratorLogin, - administratorLoginPassword, - version, - createMode, - pointInTimeUTC, - sourceClusterResourceId, - poolName, - replicaCount, - vCores, - processorType, - network, - state, - fullyQualifiedDomainName, - readonlyEndpoint, - provisioningState, - zonePlacementPolicy, - parameterGroup, - additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs deleted file mode 100644 index a74a2f27e595..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs +++ /dev/null @@ -1,132 +0,0 @@ -// 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; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb cluster. - public partial class HorizonDbClusterProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The administrator login name. - /// is null. - public HorizonDbClusterProperties(string administratorLogin) - { - Argument.AssertNotNull(administratorLogin, nameof(administratorLogin)); - - AdministratorLogin = administratorLogin; - } - - /// Initializes a new instance of . - /// 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 network related info. - /// 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. - /// Keeps track of any properties unknown to the library. - internal HorizonDbClusterProperties(string administratorLogin, string administratorLoginPassword, string version, CreateModeCluster? createMode, DateTimeOffset? pointInTimeUTC, ResourceIdentifier sourceClusterResourceId, string poolName, int? replicaCount, int? vCores, string processorType, Network network, State? state, string fullyQualifiedDomainName, string readonlyEndpoint, ProvisioningState? provisioningState, ZonePlacementPolicy? zonePlacementPolicy, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) - { - AdministratorLogin = administratorLogin; - AdministratorLoginPassword = administratorLoginPassword; - Version = version; - CreateMode = createMode; - PointInTimeUTC = pointInTimeUTC; - SourceClusterResourceId = sourceClusterResourceId; - PoolName = poolName; - ReplicaCount = replicaCount; - VCores = vCores; - ProcessorType = processorType; - Network = network; - State = state; - FullyQualifiedDomainName = fullyQualifiedDomainName; - ReadonlyEndpoint = readonlyEndpoint; - ProvisioningState = provisioningState; - ZonePlacementPolicy = zonePlacementPolicy; - ParameterGroup = parameterGroup; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The administrator login name. - public string AdministratorLogin { get; set; } - - /// The administrator login password. - public string AdministratorLoginPassword { get; set; } - - /// The version of the HorizonDb cluster. - public string Version { get; set; } - - /// The mode to create a new HorizonDb cluster. - public CreateModeCluster? CreateMode { get; set; } - - /// Restore point creation time specifying the time to restore from. - public DateTimeOffset? PointInTimeUTC { get; set; } - - /// The source cluster resource ID for restore or replica creation. - public ResourceIdentifier SourceClusterResourceId { get; set; } - - /// The pool name for restore or replica operations. - public string PoolName { get; set; } - - /// Number of replicas. - public int? ReplicaCount { get; set; } - - /// Number of vCores. - public int? VCores { get; set; } - - /// The processor type for the HorizonDb cluster. - public string ProcessorType { get; set; } - - /// The network related info. - internal Network Network { get; set; } - - /// Current state of the cluster. - public State? State { get; } - - /// The fully qualified domain name of the cluster. - public string FullyQualifiedDomainName { get; } - - /// The fully qualified domain name used for readonly endpoint for the cluster. - public string ReadonlyEndpoint { get; } - - /// The provisioning state of the cluster. - public ProvisioningState? ProvisioningState { get; } - - /// Defines how replicas are placed across availability zones. - public ZonePlacementPolicy? ZonePlacementPolicy { get; set; } - - /// Defines connection to a parameter group. - public HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get; set; } - - /// The flag indicating whether public ip is requested. - public PublicNetworkAccessState? PublicNetworkAccess - { - get - { - return Network is null ? default : Network.PublicNetworkAccess; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs deleted file mode 100644 index 99cb3933c449..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb cluster for update operations. - public partial class HorizonDbClusterPropertiesForPatchUpdate : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterPropertiesForPatchUpdate 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 DeserializeHorizonDbClusterPropertiesForPatchUpdate(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbClusterPropertiesForPatchUpdate)} 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(HorizonDbClusterPropertiesForPatchUpdate)} 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. - HorizonDbClusterPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbClusterPropertiesForPatchUpdate)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(AdministratorLoginPassword)) - { - writer.WritePropertyName("administratorLoginPassword"u8); - writer.WriteStringValue(AdministratorLoginPassword); - } - if (Optional.IsDefined(VCores)) - { - writer.WritePropertyName("vCores"u8); - writer.WriteNumberValue(VCores.Value); - } - if (Optional.IsDefined(ParameterGroup)) - { - writer.WritePropertyName("parameterGroup"u8); - writer.WriteObjectValue(ParameterGroup, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbClusterPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbClusterPropertiesForPatchUpdate 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(HorizonDbClusterPropertiesForPatchUpdate)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbClusterPropertiesForPatchUpdate(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbClusterPropertiesForPatchUpdate DeserializeHorizonDbClusterPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string administratorLoginPassword = default; - int? vCores = default; - HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("administratorLoginPassword"u8)) - { - administratorLoginPassword = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("vCores"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - vCores = prop.Value.GetInt32(); - continue; - } - if (prop.NameEquals("parameterGroup"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - parameterGroup = HorizonDbClusterParameterGroupConnectionProperties.DeserializeHorizonDbClusterParameterGroupConnectionProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbClusterPropertiesForPatchUpdate(administratorLoginPassword, vCores, parameterGroup, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs deleted file mode 100644 index 09d7aaf8bc09..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb cluster for update operations. - public partial class HorizonDbClusterPropertiesForPatchUpdate - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbClusterPropertiesForPatchUpdate() - { - } - - /// Initializes a new instance of . - /// The administrator login password. - /// Number of vCores. - /// Defines connection to a parameter group. - /// Keeps track of any properties unknown to the library. - internal HorizonDbClusterPropertiesForPatchUpdate(string administratorLoginPassword, int? vCores, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) - { - AdministratorLoginPassword = administratorLoginPassword; - VCores = vCores; - ParameterGroup = parameterGroup; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The administrator login password. - public string AdministratorLoginPassword { get; set; } - - /// Number of vCores. - public int? VCores { get; set; } - - /// Defines connection to a parameter group. - public HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs deleted file mode 100644 index c71a9b9ed916..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbFirewallRule list operation. - internal partial class HorizonDbFirewallRuleListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbFirewallRuleListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbFirewallRuleListResult 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 DeserializeHorizonDbFirewallRuleListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbFirewallRuleListResult)} 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(HorizonDbFirewallRuleListResult)} 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. - HorizonDbFirewallRuleListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbFirewallRuleListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbFirewallRuleListResult(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 virtual 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(HorizonDbFirewallRuleListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbFirewallRuleData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbFirewallRuleListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbFirewallRuleListResult 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(HorizonDbFirewallRuleListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbFirewallRuleListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbFirewallRuleListResult DeserializeHorizonDbFirewallRuleListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbFirewallRuleListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs deleted file mode 100644 index 856c4f9f3709..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbFirewallRule list operation. - internal partial class HorizonDbFirewallRuleListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbFirewallRule items on this page. - internal HorizonDbFirewallRuleListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbFirewallRule items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbFirewallRuleListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbFirewallRule items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs deleted file mode 100644 index 4b465679e2fd..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb firewall rule. - public partial class HorizonDbFirewallRuleProperties : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbFirewallRuleProperties() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbFirewallRuleProperties 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 DeserializeHorizonDbFirewallRuleProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbFirewallRuleProperties)} 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(HorizonDbFirewallRuleProperties)} 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. - HorizonDbFirewallRuleProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbFirewallRuleProperties)} does not support writing '{format}' format."); - } - writer.WritePropertyName("startIpAddress"u8); - writer.WriteStringValue(StartIpAddress); - writer.WritePropertyName("endIpAddress"u8); - writer.WriteStringValue(EndIpAddress); - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbFirewallRuleProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbFirewallRuleProperties 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(HorizonDbFirewallRuleProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbFirewallRuleProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbFirewallRuleProperties DeserializeHorizonDbFirewallRuleProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string startIpAddress = default; - string endIpAddress = default; - string description = default; - ProvisioningState? provisioningState = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("startIpAddress"u8)) - { - startIpAddress = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("endIpAddress"u8)) - { - endIpAddress = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("description"u8)) - { - description = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("provisioningState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new ProvisioningState(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbFirewallRuleProperties(startIpAddress, endIpAddress, description, provisioningState, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs deleted file mode 100644 index 1849e052c0bd..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb firewall rule. - public partial class HorizonDbFirewallRuleProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The start IP address of the firewall rule (IPv4). - /// The end IP address of the firewall rule (IPv4). - /// or is null. - public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) - { - Argument.AssertNotNull(startIpAddress, nameof(startIpAddress)); - Argument.AssertNotNull(endIpAddress, nameof(endIpAddress)); - - StartIpAddress = startIpAddress; - EndIpAddress = endIpAddress; - } - - /// Initializes a new instance of . - /// 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. - /// Keeps track of any properties unknown to the library. - internal HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress, string description, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) - { - StartIpAddress = startIpAddress; - EndIpAddress = endIpAddress; - Description = description; - ProvisioningState = provisioningState; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The start IP address of the firewall rule (IPv4). - public string StartIpAddress { get; set; } - - /// The end IP address of the firewall rule (IPv4). - public string EndIpAddress { get; set; } - - /// The description of the HorizonDb firewall rule. - public string Description { get; set; } - - /// The provisioning state of the firewall rule. - public ProvisioningState? ProvisioningState { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs deleted file mode 100644 index 1b5a5886ee51..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Connection information for HorizonDb parameter group. - public partial class HorizonDbParameterGroupConnectionProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupConnectionProperties 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 DeserializeHorizonDbParameterGroupConnectionProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupConnectionProperties)} 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(HorizonDbParameterGroupConnectionProperties)} 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. - HorizonDbParameterGroupConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbParameterGroupConnectionProperties)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (options.Format != "W" && Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } - if (options.Format != "W" && Optional.IsDefined(Type)) - { - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbParameterGroupConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupConnectionProperties 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(HorizonDbParameterGroupConnectionProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupConnectionProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupConnectionProperties DeserializeHorizonDbParameterGroupConnectionProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string name = default; - ResourceIdentifier id = default; - string @type = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("name"u8)) - { - name = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("id"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - id = new ResourceIdentifier(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("type"u8)) - { - @type = prop.Value.GetString(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupConnectionProperties(name, id, @type, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs deleted file mode 100644 index aa7ca2c5f846..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Connection information for HorizonDb parameter group. - public partial class HorizonDbParameterGroupConnectionProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal HorizonDbParameterGroupConnectionProperties() - { - } - - /// Initializes a new instance of . - /// The name of the connected resource. - /// The resource ID of the connected resource. - /// The type of the resource. - /// Keeps track of any properties unknown to the library. - internal HorizonDbParameterGroupConnectionProperties(string name, ResourceIdentifier id, string @type, IDictionary additionalBinaryDataProperties) - { - Name = name; - Id = id; - Type = @type; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The name of the connected resource. - public string Name { get; } - - /// The resource ID of the connected resource. - public ResourceIdentifier Id { get; } - - /// The type of the resource. - public string Type { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs deleted file mode 100644 index 1932f4d0447f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbParameterGroupConnectionProperties list operation. - internal partial class HorizonDbParameterGroupConnectionPropertiesListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbParameterGroupConnectionPropertiesListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupConnectionPropertiesListResult 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 DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupConnectionPropertiesListResult)} 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(HorizonDbParameterGroupConnectionPropertiesListResult)} 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. - HorizonDbParameterGroupConnectionPropertiesListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbParameterGroupConnectionPropertiesListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(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 virtual 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(HorizonDbParameterGroupConnectionPropertiesListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbParameterGroupConnectionProperties item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbParameterGroupConnectionPropertiesListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupConnectionPropertiesListResult 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(HorizonDbParameterGroupConnectionPropertiesListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupConnectionPropertiesListResult DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbParameterGroupConnectionProperties.DeserializeHorizonDbParameterGroupConnectionProperties(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupConnectionPropertiesListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs deleted file mode 100644 index 1fcea0f58404..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbParameterGroupConnectionProperties list operation. - internal partial class HorizonDbParameterGroupConnectionPropertiesListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbParameterGroupConnectionProperties items on this page. - internal HorizonDbParameterGroupConnectionPropertiesListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbParameterGroupConnectionProperties items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbParameterGroupConnectionPropertiesListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbParameterGroupConnectionProperties items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs deleted file mode 100644 index 2f2432019001..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbParameterGroup list operation. - internal partial class HorizonDbParameterGroupListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbParameterGroupListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupListResult 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 DeserializeHorizonDbParameterGroupListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupListResult)} 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(HorizonDbParameterGroupListResult)} 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. - HorizonDbParameterGroupListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbParameterGroupListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbParameterGroupListResult(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 virtual 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(HorizonDbParameterGroupListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbParameterGroupData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbParameterGroupListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupListResult 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(HorizonDbParameterGroupListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupListResult DeserializeHorizonDbParameterGroupListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs deleted file mode 100644 index 4dbe8dc14dac..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbParameterGroup list operation. - internal partial class HorizonDbParameterGroupListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbParameterGroup items on this page. - internal HorizonDbParameterGroupListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbParameterGroup items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbParameterGroupListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbParameterGroup items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs deleted file mode 100644 index 8f0f47c82e5d..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// HorizonDb parameter group for update operations. - public partial class HorizonDbParameterGroupPatch : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupPatch 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 DeserializeHorizonDbParameterGroupPatch(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupPatch)} 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(HorizonDbParameterGroupPatch)} 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. - HorizonDbParameterGroupPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbParameterGroupPatch horizonDbParameterGroupPatch) - { - if (horizonDbParameterGroupPatch == null) - { - return null; - } - return RequestContent.Create(horizonDbParameterGroupPatch, 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 virtual 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(HorizonDbParameterGroupPatch)} does not support writing '{format}' format."); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - if (item.Value == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbParameterGroupPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupPatch 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(HorizonDbParameterGroupPatch)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupPatch(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupPatch DeserializeHorizonDbParameterGroupPatch(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IDictionary tags = default; - HorizonDbParameterGroupPropertiesForPatchUpdate properties = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbParameterGroupPropertiesForPatchUpdate.DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs deleted file mode 100644 index 656a2d9b1b3e..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// HorizonDb parameter group for update operations. - public partial class HorizonDbParameterGroupPatch - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbParameterGroupPatch() - { - Tags = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of . - /// Resource tags. - /// The properties that can be updated for a HorizonDb parameter group. - /// Keeps track of any properties unknown to the library. - internal HorizonDbParameterGroupPatch(IDictionary tags, HorizonDbParameterGroupPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) - { - Tags = tags; - Properties = properties; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Resource tags. - public IDictionary Tags { get; } - - /// The properties that can be updated for a HorizonDb parameter group. - public HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs deleted file mode 100644 index f5091eb2dfb8..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb parameter group. - public partial class HorizonDbParameterGroupProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupProperties 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 DeserializeHorizonDbParameterGroupProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupProperties)} 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(HorizonDbParameterGroupProperties)} 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. - HorizonDbParameterGroupProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbParameterGroupProperties)} does not support writing '{format}' format."); - } - if (Optional.IsCollectionDefined(Parameters)) - { - writer.WritePropertyName("parameters"u8); - writer.WriteStartArray(); - foreach (ParameterProperties item in Parameters) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsDefined(PgVersion)) - { - writer.WritePropertyName("pgVersion"u8); - writer.WriteNumberValue(PgVersion.Value); - } - if (options.Format != "W" && Optional.IsDefined(Version)) - { - writer.WritePropertyName("version"u8); - writer.WriteNumberValue(Version.Value); - } - if (Optional.IsDefined(ApplyImmediately)) - { - writer.WritePropertyName("applyImmediately"u8); - writer.WriteBooleanValue(ApplyImmediately.Value); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbParameterGroupProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupProperties 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(HorizonDbParameterGroupProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterGroupProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList parameters = default; - string description = default; - int? pgVersion = default; - int? version = default; - bool? applyImmediately = default; - ProvisioningState? provisioningState = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("parameters"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); - } - parameters = array; - continue; - } - if (prop.NameEquals("description"u8)) - { - description = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("pgVersion"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - pgVersion = prop.Value.GetInt32(); - continue; - } - if (prop.NameEquals("version"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - version = prop.Value.GetInt32(); - continue; - } - if (prop.NameEquals("applyImmediately"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - applyImmediately = prop.Value.GetBoolean(); - continue; - } - if (prop.NameEquals("provisioningState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new ProvisioningState(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupProperties( - parameters ?? new ChangeTrackingList(), - description, - pgVersion, - version, - applyImmediately, - provisioningState, - additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs deleted file mode 100644 index 48f0b8ebf353..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb parameter group. - public partial class HorizonDbParameterGroupProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbParameterGroupProperties() - { - Parameters = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// 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. - /// Keeps track of any properties unknown to the library. - internal HorizonDbParameterGroupProperties(IList parameters, string description, int? pgVersion, int? version, bool? applyImmediately, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) - { - Parameters = parameters; - Description = description; - PgVersion = pgVersion; - Version = version; - ApplyImmediately = applyImmediately; - ProvisioningState = provisioningState; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Parameters in the parameter group. - public IList Parameters { get; } - - /// Description of the parameter group. - public string Description { get; set; } - - /// PostgreSQL version for the parameter group. - public int? PgVersion { get; set; } - - /// Current version of the parameter group. - public int? Version { get; } - - /// Indicates whether the parameters should be applied immediately. - public bool? ApplyImmediately { get; set; } - - /// The provisioning state of the parameter group. - public ProvisioningState? ProvisioningState { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs deleted file mode 100644 index 05c13a4d6964..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb parameter group for update operations. - public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupPropertiesForPatchUpdate 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 DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbParameterGroupPropertiesForPatchUpdate)} 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} 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. - HorizonDbParameterGroupPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} does not support writing '{format}' format."); - } - if (Optional.IsCollectionDefined(Parameters)) - { - writer.WritePropertyName("parameters"u8); - writer.WriteStartArray(); - foreach (ParameterProperties item in Parameters) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsDefined(ApplyImmediately)) - { - writer.WritePropertyName("applyImmediately"u8); - writer.WriteBooleanValue(ApplyImmediately.Value); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbParameterGroupPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbParameterGroupPropertiesForPatchUpdate 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbParameterGroupPropertiesForPatchUpdate DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList parameters = default; - string description = default; - bool? applyImmediately = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("parameters"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); - } - parameters = array; - continue; - } - if (prop.NameEquals("description"u8)) - { - description = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("applyImmediately"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - applyImmediately = prop.Value.GetBoolean(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbParameterGroupPropertiesForPatchUpdate(parameters ?? new ChangeTrackingList(), description, applyImmediately, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs deleted file mode 100644 index 3ce70681b7f4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb parameter group for update operations. - public partial class HorizonDbParameterGroupPropertiesForPatchUpdate - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbParameterGroupPropertiesForPatchUpdate() - { - Parameters = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// Parameters in the parameter group. - /// Description of the parameter group. - /// Indicates whether the parameters should be applied immediately. - /// Keeps track of any properties unknown to the library. - internal HorizonDbParameterGroupPropertiesForPatchUpdate(IList parameters, string description, bool? applyImmediately, IDictionary additionalBinaryDataProperties) - { - Parameters = parameters; - Description = description; - ApplyImmediately = applyImmediately; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Parameters in the parameter group. - public IList Parameters { get; } - - /// Description of the parameter group. - public string Description { get; set; } - - /// Indicates whether the parameters should be applied immediately. - public bool? ApplyImmediately { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs deleted file mode 100644 index 549ca89f7691..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbPool list operation. - internal partial class HorizonDbPoolListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbPoolListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbPoolListResult 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 DeserializeHorizonDbPoolListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPoolListResult)} 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(HorizonDbPoolListResult)} 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. - HorizonDbPoolListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbPoolListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbPoolListResult(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 virtual 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(HorizonDbPoolListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbPoolData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbPoolListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbPoolListResult 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(HorizonDbPoolListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPoolListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPoolListResult DeserializeHorizonDbPoolListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbPoolData.DeserializeHorizonDbPoolData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPoolListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs deleted file mode 100644 index f48529dcec55..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbPool list operation. - internal partial class HorizonDbPoolListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbPool items on this page. - internal HorizonDbPoolListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbPool items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbPoolListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbPool items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs deleted file mode 100644 index 58f5a3384c6f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs +++ /dev/null @@ -1,224 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb pool. - public partial class HorizonDbPoolProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbPoolProperties 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 DeserializeHorizonDbPoolProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPoolProperties)} 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(HorizonDbPoolProperties)} 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. - HorizonDbPoolProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbPoolProperties)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Location)) - { - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location.Value); - } - if (options.Format != "W" && Optional.IsDefined(State)) - { - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(ReplicaCount)) - { - writer.WritePropertyName("replicaCount"u8); - writer.WriteNumberValue(ReplicaCount.Value); - } - if (options.Format != "W" && Optional.IsDefined(Version)) - { - writer.WritePropertyName("version"u8); - writer.WriteStringValue(Version); - } - if (options.Format != "W" && Optional.IsDefined(CreateMode)) - { - writer.WritePropertyName("createMode"u8); - writer.WriteStringValue(CreateMode.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbPoolProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbPoolProperties 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(HorizonDbPoolProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPoolProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - AzureLocation? location = default; - State? state = default; - int? replicaCount = default; - string version = default; - CreateModePool? createMode = default; - ProvisioningState? provisioningState = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("location"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - location = new AzureLocation(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("state"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - state = new State(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("replicaCount"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - replicaCount = prop.Value.GetInt32(); - continue; - } - if (prop.NameEquals("version"u8)) - { - version = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("createMode"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createMode = new CreateModePool(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("provisioningState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new ProvisioningState(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPoolProperties( - location, - state, - replicaCount, - version, - createMode, - provisioningState, - additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs deleted file mode 100644 index 5ad8f3fcfa5a..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb pool. - public partial class HorizonDbPoolProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal HorizonDbPoolProperties() - { - } - - /// Initializes a new instance of . - /// 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. - /// Keeps track of any properties unknown to the library. - internal HorizonDbPoolProperties(AzureLocation? location, State? state, int? replicaCount, string version, CreateModePool? createMode, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) - { - Location = location; - State = state; - ReplicaCount = replicaCount; - Version = version; - CreateMode = createMode; - ProvisioningState = provisioningState; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The location of the HorizonDb pool. - public AzureLocation? Location { get; } - - /// Current state of the pool. - public State? State { get; } - - /// Number of replicas in the pool. - public int? ReplicaCount { get; } - - /// The version of the HorizonDb pool. - public string Version { get; } - - /// The create mode for the pool. - public CreateModePool? CreateMode { get; } - - /// The provisioning state of the pool. - public ProvisioningState? ProvisioningState { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs deleted file mode 100644 index ed1bdd29030d..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.Serialization.cs +++ /dev/null @@ -1,184 +0,0 @@ -// 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; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The private endpoint connection resource. - public partial class HorizonDbPrivateEndpointConnection : ResourceData, IJsonModel - { - /// 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 DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnection)} 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(HorizonDbPrivateEndpointConnection)} 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. - HorizonDbPrivateEndpointConnection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPrivateEndpointConnection)PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbPrivateEndpointConnection FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbPrivateEndpointConnection(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(HorizonDbPrivateEndpointConnection)} 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. - HorizonDbPrivateEndpointConnection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPrivateEndpointConnection)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(HorizonDbPrivateEndpointConnection)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPrivateEndpointConnection(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPrivateEndpointConnection DeserializeHorizonDbPrivateEndpointConnection(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(); - PrivateEndpointConnectionProperties 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPrivateEndpointConnection( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs deleted file mode 100644 index 51355c03ec7c..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnection.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The private endpoint connection resource. - public partial class HorizonDbPrivateEndpointConnection : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal HorizonDbPrivateEndpointConnection() - { - } - - /// 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. - /// The private endpoint connection properties. - internal HorizonDbPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - } - - /// The private endpoint connection properties. - public PrivateEndpointConnectionProperties Properties { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs deleted file mode 100644 index 9e4439e8cdfb..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProvisioningState.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The current provisioning state. - public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : IEquatable - { - private readonly string _value; - /// Connection has been provisioned. - private const string SucceededValue = "Succeeded"; - /// Connection is being created. - private const string CreatingValue = "Creating"; - /// Connection is being deleted. - private const string DeletingValue = "Deleting"; - /// Connection provisioning has failed. - private const string FailedValue = "Failed"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public HorizonDbPrivateEndpointConnectionProvisioningState(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Connection has been provisioned. - public static HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(SucceededValue); - - /// Connection is being created. - public static HorizonDbPrivateEndpointConnectionProvisioningState Creating { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(CreatingValue); - - /// Connection is being deleted. - public static HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(DeletingValue); - - /// Connection provisioning has failed. - public static HorizonDbPrivateEndpointConnectionProvisioningState Failed { get; } = new HorizonDbPrivateEndpointConnectionProvisioningState(FailedValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(HorizonDbPrivateEndpointConnectionProvisioningState left, HorizonDbPrivateEndpointConnectionProvisioningState right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(HorizonDbPrivateEndpointConnectionProvisioningState left, HorizonDbPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator HorizonDbPrivateEndpointConnectionProvisioningState(string value) => new HorizonDbPrivateEndpointConnectionProvisioningState(value); - - /// Converts a string to a . - /// The value. - public static implicit operator HorizonDbPrivateEndpointConnectionProvisioningState?(string value) => value == null ? null : new HorizonDbPrivateEndpointConnectionProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is HorizonDbPrivateEndpointConnectionProvisioningState other && Equals(other); - - /// - public bool Equals(HorizonDbPrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs deleted file mode 100644 index a2fc6c15f2a4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointServiceConnectionStatus.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The private endpoint connection status. - public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : IEquatable - { - private readonly string _value; - /// Connection waiting for approval or rejection. - private const string PendingValue = "Pending"; - /// Connection approved. - private const string ApprovedValue = "Approved"; - /// Connection Rejected. - private const string RejectedValue = "Rejected"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public HorizonDbPrivateEndpointServiceConnectionStatus(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Connection waiting for approval or rejection. - public static HorizonDbPrivateEndpointServiceConnectionStatus Pending { get; } = new HorizonDbPrivateEndpointServiceConnectionStatus(PendingValue); - - /// Connection approved. - public static HorizonDbPrivateEndpointServiceConnectionStatus Approved { get; } = new HorizonDbPrivateEndpointServiceConnectionStatus(ApprovedValue); - - /// Connection Rejected. - public static HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get; } = new HorizonDbPrivateEndpointServiceConnectionStatus(RejectedValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(HorizonDbPrivateEndpointServiceConnectionStatus left, HorizonDbPrivateEndpointServiceConnectionStatus right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(HorizonDbPrivateEndpointServiceConnectionStatus left, HorizonDbPrivateEndpointServiceConnectionStatus right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator HorizonDbPrivateEndpointServiceConnectionStatus(string value) => new HorizonDbPrivateEndpointServiceConnectionStatus(value); - - /// Converts a string to a . - /// The value. - public static implicit operator HorizonDbPrivateEndpointServiceConnectionStatus?(string value) => value == null ? null : new HorizonDbPrivateEndpointServiceConnectionStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is HorizonDbPrivateEndpointServiceConnectionStatus other && Equals(other); - - /// - public bool Equals(HorizonDbPrivateEndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs deleted file mode 100644 index 351ba16ec3b2..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbPrivateLinkResource list operation. - internal partial class HorizonDbPrivateLinkResourceListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbPrivateLinkResourceListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbPrivateLinkResourceListResult 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 DeserializeHorizonDbPrivateLinkResourceListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceListResult)} 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(HorizonDbPrivateLinkResourceListResult)} 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. - HorizonDbPrivateLinkResourceListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbPrivateLinkResourceListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbPrivateLinkResourceListResult(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 virtual 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(HorizonDbPrivateLinkResourceListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbPrivateLinkResourceData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbPrivateLinkResourceListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbPrivateLinkResourceListResult 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(HorizonDbPrivateLinkResourceListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPrivateLinkResourceListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPrivateLinkResourceListResult DeserializeHorizonDbPrivateLinkResourceListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbPrivateLinkResourceData.DeserializeHorizonDbPrivateLinkResourceData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPrivateLinkResourceListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs deleted file mode 100644 index 210fedf6c46f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbPrivateLinkResource list operation. - internal partial class HorizonDbPrivateLinkResourceListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbPrivateLinkResource items on this page. - internal HorizonDbPrivateLinkResourceListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbPrivateLinkResource items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbPrivateLinkResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbPrivateLinkResource items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs deleted file mode 100644 index 137f6ffa2d22..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.Serialization.cs +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a private link resource. - public partial class HorizonDbPrivateLinkResourceProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbPrivateLinkResourceProperties 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 DeserializeHorizonDbPrivateLinkResourceProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceProperties)} 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(HorizonDbPrivateLinkResourceProperties)} 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. - HorizonDbPrivateLinkResourceProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbPrivateLinkResourceProperties)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(GroupId)) - { - writer.WritePropertyName("groupId"u8); - writer.WriteStringValue(GroupId); - } - if (options.Format != "W" && Optional.IsCollectionDefined(RequiredMembers)) - { - writer.WritePropertyName("requiredMembers"u8); - writer.WriteStartArray(); - foreach (string item in RequiredMembers) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsCollectionDefined(RequiredZoneNames)) - { - writer.WritePropertyName("requiredZoneNames"u8); - writer.WriteStartArray(); - foreach (string item in RequiredZoneNames) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbPrivateLinkResourceProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbPrivateLinkResourceProperties 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(HorizonDbPrivateLinkResourceProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPrivateLinkResourceProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPrivateLinkResourceProperties DeserializeHorizonDbPrivateLinkResourceProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string groupId = default; - IReadOnlyList requiredMembers = default; - IList requiredZoneNames = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("groupId"u8)) - { - groupId = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("requiredMembers"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetString()); - } - } - requiredMembers = array; - continue; - } - if (prop.NameEquals("requiredZoneNames"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetString()); - } - } - requiredZoneNames = array; - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPrivateLinkResourceProperties(groupId, requiredMembers ?? new ChangeTrackingList(), requiredZoneNames ?? new ChangeTrackingList(), additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs deleted file mode 100644 index 5e5e84626b6e..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceProperties.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a private link resource. - public partial class HorizonDbPrivateLinkResourceProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal HorizonDbPrivateLinkResourceProperties() - { - RequiredMembers = new ChangeTrackingList(); - RequiredZoneNames = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The private link resource group id. - /// The private link resource required member names. - /// The private link resource private link DNS zone name. - /// Keeps track of any properties unknown to the library. - internal HorizonDbPrivateLinkResourceProperties(string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames, IDictionary additionalBinaryDataProperties) - { - GroupId = groupId; - RequiredMembers = requiredMembers; - RequiredZoneNames = requiredZoneNames; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The private link resource group id. - public string GroupId { get; } - - /// The private link resource required member names. - public IReadOnlyList RequiredMembers { get; } - - /// The private link resource private link DNS zone name. - public IList RequiredZoneNames { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs deleted file mode 100644 index ff5ba98c3197..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.Serialization.cs +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// A collection of information about the state of the connection between service consumer and provider. - public partial class HorizonDbPrivateLinkServiceConnectionState : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbPrivateLinkServiceConnectionState 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 DeserializeHorizonDbPrivateLinkServiceConnectionState(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbPrivateLinkServiceConnectionState)} 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(HorizonDbPrivateLinkServiceConnectionState)} 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. - HorizonDbPrivateLinkServiceConnectionState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbPrivateLinkServiceConnectionState)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); - } - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsDefined(ActionsRequired)) - { - writer.WritePropertyName("actionsRequired"u8); - writer.WriteStringValue(ActionsRequired); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbPrivateLinkServiceConnectionState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbPrivateLinkServiceConnectionState 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(HorizonDbPrivateLinkServiceConnectionState)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbPrivateLinkServiceConnectionState(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbPrivateLinkServiceConnectionState DeserializeHorizonDbPrivateLinkServiceConnectionState(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - HorizonDbPrivateEndpointServiceConnectionStatus? status = default; - string description = default; - string actionsRequired = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("status"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new HorizonDbPrivateEndpointServiceConnectionStatus(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("description"u8)) - { - description = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("actionsRequired"u8)) - { - actionsRequired = prop.Value.GetString(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbPrivateLinkServiceConnectionState(status, description, actionsRequired, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs deleted file mode 100644 index 7db55527fa52..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkServiceConnectionState.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// A collection of information about the state of the connection between service consumer and provider. - public partial class HorizonDbPrivateLinkServiceConnectionState - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbPrivateLinkServiceConnectionState() - { - } - - /// Initializes a new instance of . - /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - /// The reason for approval/rejection of the connection. - /// A message indicating if changes on the service provider require any updates on the consumer. - /// Keeps track of any properties unknown to the library. - internal HorizonDbPrivateLinkServiceConnectionState(HorizonDbPrivateEndpointServiceConnectionStatus? status, string description, string actionsRequired, IDictionary additionalBinaryDataProperties) - { - Status = status; - Description = description; - ActionsRequired = actionsRequired; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - public HorizonDbPrivateEndpointServiceConnectionStatus? Status { get; set; } - - /// The reason for approval/rejection of the connection. - public string Description { get; set; } - - /// A message indicating if changes on the service provider require any updates on the consumer. - public string ActionsRequired { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs deleted file mode 100644 index 59ae4ffb01ad..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbReplica list operation. - internal partial class HorizonDbReplicaListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal HorizonDbReplicaListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaListResult 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 DeserializeHorizonDbReplicaListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbReplicaListResult)} 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(HorizonDbReplicaListResult)} 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. - HorizonDbReplicaListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static HorizonDbReplicaListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeHorizonDbReplicaListResult(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 virtual 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(HorizonDbReplicaListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (HorizonDbReplicaData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbReplicaListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaListResult 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(HorizonDbReplicaListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbReplicaListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbReplicaListResult DeserializeHorizonDbReplicaListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(HorizonDbReplicaData.DeserializeHorizonDbReplicaData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbReplicaListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs deleted file mode 100644 index 9bbdf2498e53..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a HorizonDbReplica list operation. - internal partial class HorizonDbReplicaListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The HorizonDbReplica items on this page. - internal HorizonDbReplicaListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The HorizonDbReplica items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal HorizonDbReplicaListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The HorizonDbReplica items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs deleted file mode 100644 index 729f0c7cff02..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// HorizonDb replica for update operations. - public partial class HorizonDbReplicaPatch : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaPatch 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 DeserializeHorizonDbReplicaPatch(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbReplicaPatch)} 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(HorizonDbReplicaPatch)} 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. - HorizonDbReplicaPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbReplicaPatch horizonDbReplicaPatch) - { - if (horizonDbReplicaPatch == null) - { - return null; - } - return RequestContent.Create(horizonDbReplicaPatch, 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 virtual 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(HorizonDbReplicaPatch)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbReplicaPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaPatch 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(HorizonDbReplicaPatch)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbReplicaPatch(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbReplicaPatch DeserializeHorizonDbReplicaPatch(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - HorizonDbReplicaPropertiesForPatchUpdate properties = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = HorizonDbReplicaPropertiesForPatchUpdate.DeserializeHorizonDbReplicaPropertiesForPatchUpdate(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbReplicaPatch(properties, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs deleted file mode 100644 index a627aef9a9c0..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// HorizonDb replica for update operations. - public partial class HorizonDbReplicaPatch - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbReplicaPatch() - { - } - - /// Initializes a new instance of . - /// Properties of a HorizonDb replica for update operations. - /// Keeps track of any properties unknown to the library. - internal HorizonDbReplicaPatch(HorizonDbReplicaPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) - { - Properties = properties; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Properties of a HorizonDb replica for update operations. - internal HorizonDbReplicaPropertiesForPatchUpdate Properties { get; set; } - - /// Role of the replica. - public ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole - { - get - { - return Properties is null ? default : Properties.Role; - } - set - { - if (Properties is null) - { - Properties = new HorizonDbReplicaPropertiesForPatchUpdate(); - } - Properties.Role = value; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs deleted file mode 100644 index 4dd01861084e..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb replica. - public partial class HorizonDbReplicaProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaProperties 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 DeserializeHorizonDbReplicaProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbReplicaProperties)} 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(HorizonDbReplicaProperties)} 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. - HorizonDbReplicaProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbReplicaProperties)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Role)) - { - writer.WritePropertyName("role"u8); - writer.WriteStringValue(Role.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(FullyQualifiedDomainName)) - { - writer.WritePropertyName("fullyQualifiedDomainName"u8); - writer.WriteStringValue(FullyQualifiedDomainName); - } - if (Optional.IsDefined(AvailabilityZone)) - { - writer.WritePropertyName("availabilityZone"u8); - writer.WriteStringValue(AvailabilityZone); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbReplicaProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaProperties 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(HorizonDbReplicaProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbReplicaProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ReplicaRole? role = default; - State? status = default; - string fullyQualifiedDomainName = default; - string availabilityZone = default; - ProvisioningState? provisioningState = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("role"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - role = new ReplicaRole(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("status"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new State(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("fullyQualifiedDomainName"u8)) - { - fullyQualifiedDomainName = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("availabilityZone"u8)) - { - availabilityZone = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("provisioningState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new ProvisioningState(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbReplicaProperties( - role, - status, - fullyQualifiedDomainName, - availabilityZone, - provisioningState, - additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs deleted file mode 100644 index 2d0b0552514b..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb replica. - public partial class HorizonDbReplicaProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbReplicaProperties() - { - } - - /// Initializes a new instance of . - /// 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. - /// Keeps track of any properties unknown to the library. - internal HorizonDbReplicaProperties(ReplicaRole? role, State? status, string fullyQualifiedDomainName, string availabilityZone, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) - { - Role = role; - Status = status; - FullyQualifiedDomainName = fullyQualifiedDomainName; - AvailabilityZone = availabilityZone; - ProvisioningState = provisioningState; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Role of the replica. - public ReplicaRole? Role { get; set; } - - /// Current status of the replica. - public State? Status { get; } - - /// The fully qualified domain name of the replica. - public string FullyQualifiedDomainName { get; } - - /// The availability zone of the replica. - public string AvailabilityZone { get; set; } - - /// The provisioning state of the replica. - public ProvisioningState? ProvisioningState { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs deleted file mode 100644 index 9bc7b8813612..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb replica for update operations. - internal partial class HorizonDbReplicaPropertiesForPatchUpdate : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaPropertiesForPatchUpdate 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 DeserializeHorizonDbReplicaPropertiesForPatchUpdate(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(HorizonDbReplicaPropertiesForPatchUpdate)} 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(HorizonDbReplicaPropertiesForPatchUpdate)} 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. - HorizonDbReplicaPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(HorizonDbReplicaPropertiesForPatchUpdate)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Role)) - { - writer.WritePropertyName("role"u8); - writer.WriteStringValue(Role.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - HorizonDbReplicaPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual HorizonDbReplicaPropertiesForPatchUpdate 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(HorizonDbReplicaPropertiesForPatchUpdate)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHorizonDbReplicaPropertiesForPatchUpdate(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static HorizonDbReplicaPropertiesForPatchUpdate DeserializeHorizonDbReplicaPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ReplicaRole? role = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("role"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - role = new ReplicaRole(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new HorizonDbReplicaPropertiesForPatchUpdate(role, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs deleted file mode 100644 index 970b302625f7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb replica for update operations. - internal partial class HorizonDbReplicaPropertiesForPatchUpdate - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public HorizonDbReplicaPropertiesForPatchUpdate() - { - } - - /// Initializes a new instance of . - /// Role of the replica. - /// Keeps track of any properties unknown to the library. - internal HorizonDbReplicaPropertiesForPatchUpdate(ReplicaRole? role, IDictionary additionalBinaryDataProperties) - { - Role = role; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Role of the replica. - public ReplicaRole? Role { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs deleted file mode 100644 index 54cf1da5643b..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Network properties. - internal partial class Network : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual Network 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 DeserializeNetwork(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(Network)} 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(Network)} 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. - Network IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(Network)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(PublicNetworkAccess)) - { - writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - Network IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual Network 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(Network)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetwork(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static Network DeserializeNetwork(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - PublicNetworkAccessState? publicNetworkAccess = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("publicNetworkAccess"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - publicNetworkAccess = new PublicNetworkAccessState(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new Network(publicNetworkAccess, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs deleted file mode 100644 index 577a48d963f7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Network properties. - internal partial class Network - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public Network() - { - } - - /// Initializes a new instance of . - /// The flag indicating whether public ip is requested. - /// Keeps track of any properties unknown to the library. - internal Network(PublicNetworkAccessState? publicNetworkAccess, IDictionary additionalBinaryDataProperties) - { - PublicNetworkAccess = publicNetworkAccess; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The flag indicating whether public ip is requested. - public PublicNetworkAccessState? PublicNetworkAccess { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs deleted file mode 100644 index b1d58a09043f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The template for adding optional properties. - public partial class OptionalPropertiesUpdateableProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual OptionalPropertiesUpdateableProperties 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 DeserializeOptionalPropertiesUpdateableProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(OptionalPropertiesUpdateableProperties)} 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(OptionalPropertiesUpdateableProperties)} 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. - OptionalPropertiesUpdateableProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(OptionalPropertiesUpdateableProperties)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(PrivateEndpoint)) - { - writer.WritePropertyName("privateEndpoint"u8); - writer.WriteObjectValue(PrivateEndpoint, options); - } - if (Optional.IsDefined(PrivateLinkServiceConnectionState)) - { - writer.WritePropertyName("privateLinkServiceConnectionState"u8); - writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - OptionalPropertiesUpdateableProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual OptionalPropertiesUpdateableProperties 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(OptionalPropertiesUpdateableProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeOptionalPropertiesUpdateableProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static OptionalPropertiesUpdateableProperties DeserializeOptionalPropertiesUpdateableProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - PrivateEndpoint privateEndpoint = default; - HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("privateEndpoint"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(prop.Value, options); - continue; - } - if (prop.NameEquals("privateLinkServiceConnectionState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privateLinkServiceConnectionState = HorizonDbPrivateLinkServiceConnectionState.DeserializeHorizonDbPrivateLinkServiceConnectionState(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new OptionalPropertiesUpdateableProperties(privateEndpoint, privateLinkServiceConnectionState, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs deleted file mode 100644 index 64e854cc9f36..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The template for adding optional properties. - public partial class OptionalPropertiesUpdateableProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public OptionalPropertiesUpdateableProperties() - { - } - - /// Initializes a new instance of . - /// The private endpoint resource. - /// A collection of information about the state of the connection between service consumer and provider. - /// Keeps track of any properties unknown to the library. - internal OptionalPropertiesUpdateableProperties(PrivateEndpoint privateEndpoint, HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState, IDictionary additionalBinaryDataProperties) - { - PrivateEndpoint = privateEndpoint; - PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The private endpoint resource. - internal PrivateEndpoint PrivateEndpoint { get; set; } - - /// A collection of information about the state of the connection between service consumer and provider. - public HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } - - /// The resource identifier of the private endpoint. - public ResourceIdentifier PrivateEndpointId - { - get - { - return PrivateEndpoint is null ? default : PrivateEndpoint.Id; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs deleted file mode 100644 index 3035647b5116..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb parameters. - public partial class ParameterProperties : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual ParameterProperties 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 DeserializeParameterProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(ParameterProperties)} 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(ParameterProperties)} 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. - ParameterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(ParameterProperties)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (options.Format != "W" && Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); - } - if (options.Format != "W" && Optional.IsDefined(DataType)) - { - writer.WritePropertyName("dataType"u8); - writer.WriteStringValue(DataType); - } - if (options.Format != "W" && Optional.IsDefined(AllowedValues)) - { - writer.WritePropertyName("allowedValues"u8); - writer.WriteStringValue(AllowedValues); - } - if (options.Format != "W" && Optional.IsDefined(IsDynamic)) - { - writer.WritePropertyName("isDynamic"u8); - writer.WriteBooleanValue(IsDynamic.Value); - } - if (options.Format != "W" && Optional.IsDefined(IsReadOnly)) - { - writer.WritePropertyName("isReadOnly"u8); - writer.WriteBooleanValue(IsReadOnly.Value); - } - if (options.Format != "W" && Optional.IsDefined(DocumentationLink)) - { - writer.WritePropertyName("documentationLink"u8); - writer.WriteStringValue(DocumentationLink.AbsoluteUri); - } - if (options.Format != "W" && Optional.IsDefined(Unit)) - { - writer.WritePropertyName("unit"u8); - writer.WriteStringValue(Unit); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - ParameterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual ParameterProperties 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(ParameterProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeParameterProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static ParameterProperties DeserializeParameterProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - 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; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("name"u8)) - { - name = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("description"u8)) - { - description = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("value"u8)) - { - value = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("dataType"u8)) - { - dataType = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("allowedValues"u8)) - { - allowedValues = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("isDynamic"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isDynamic = prop.Value.GetBoolean(); - continue; - } - if (prop.NameEquals("isReadOnly"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isReadOnly = prop.Value.GetBoolean(); - continue; - } - if (prop.NameEquals("documentationLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - documentationLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (prop.NameEquals("unit"u8)) - { - unit = prop.Value.GetString(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new ParameterProperties( - name, - description, - value, - dataType, - allowedValues, - isDynamic, - isReadOnly, - documentationLink, - unit, - additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs deleted file mode 100644 index 7d1b0d989d59..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of a HorizonDb parameters. - public partial class ParameterProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public ParameterProperties() - { - } - - /// Initializes a new instance of . - /// 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. - /// Keeps track of any properties unknown to the library. - internal ParameterProperties(string name, string description, string value, string dataType, string allowedValues, bool? isDynamic, bool? isReadOnly, Uri documentationLink, string unit, IDictionary additionalBinaryDataProperties) - { - Name = name; - Description = description; - Value = value; - DataType = dataType; - AllowedValues = allowedValues; - IsDynamic = isDynamic; - IsReadOnly = isReadOnly; - DocumentationLink = documentationLink; - Unit = unit; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The name of the parameter. - public string Name { get; set; } - - /// The description of the parameter. - public string Description { get; } - - /// The value of the configuration. - public string Value { get; set; } - - /// The data type of the parameter. - public string DataType { get; } - - /// The allowed values for the parameter. - public string AllowedValues { get; } - - /// Whether the parameter can be changed dynamically. - public bool? IsDynamic { get; } - - /// Whether the parameter is a read-only parameter. - public bool? IsReadOnly { get; } - - /// Link to parameter documentation. - public Uri DocumentationLink { get; } - - /// The unit of measurement for the parameter. - public string Unit { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs deleted file mode 100644 index ef6052db20db..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The private endpoint resource. - internal partial class PrivateEndpoint : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual PrivateEndpoint 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 DeserializePrivateEndpoint(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateEndpoint)} 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(PrivateEndpoint)} 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. - PrivateEndpoint IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(PrivateEndpoint)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - PrivateEndpoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual PrivateEndpoint 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(PrivateEndpoint)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpoint(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - 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 (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateEndpoint(id, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs deleted file mode 100644 index 0cd75b315227..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The private endpoint resource. - internal partial class PrivateEndpoint - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public PrivateEndpoint() - { - } - - /// Initializes a new instance of . - /// The resource identifier of the private endpoint. - /// Keeps track of any properties unknown to the library. - internal PrivateEndpoint(ResourceIdentifier id, IDictionary additionalBinaryDataProperties) - { - Id = id; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The resource identifier of the private endpoint. - public ResourceIdentifier Id { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs deleted file mode 100644 index 6992d93c3b22..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of the private endpoint connection. - public partial class PrivateEndpointConnectionProperties : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal PrivateEndpointConnectionProperties() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionProperties 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 DeserializePrivateEndpointConnectionProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionProperties)} 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(PrivateEndpointConnectionProperties)} 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. - PrivateEndpointConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// 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 virtual 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(PrivateEndpointConnectionProperties)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) - { - writer.WritePropertyName("groupIds"u8); - writer.WriteStartArray(); - foreach (string item in GroupIds) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(PrivateEndpoint)) - { - writer.WritePropertyName("privateEndpoint"u8); - writer.WriteObjectValue(PrivateEndpoint, options); - } - writer.WritePropertyName("privateLinkServiceConnectionState"u8); - writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - PrivateEndpointConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionProperties 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(PrivateEndpointConnectionProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateEndpointConnectionProperties DeserializePrivateEndpointConnectionProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList groupIds = default; - PrivateEndpoint privateEndpoint = default; - HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; - HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("groupIds"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetString()); - } - } - groupIds = array; - continue; - } - if (prop.NameEquals("privateEndpoint"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(prop.Value, options); - continue; - } - if (prop.NameEquals("privateLinkServiceConnectionState"u8)) - { - privateLinkServiceConnectionState = HorizonDbPrivateLinkServiceConnectionState.DeserializeHorizonDbPrivateLinkServiceConnectionState(prop.Value, options); - continue; - } - if (prop.NameEquals("provisioningState"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new HorizonDbPrivateEndpointConnectionProvisioningState(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateEndpointConnectionProperties(groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs deleted file mode 100644 index 8b2636254f6f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ /dev/null @@ -1,65 +0,0 @@ -// 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; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Properties of the private endpoint connection. - public partial class PrivateEndpointConnectionProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// A collection of information about the state of the connection between service consumer and provider. - internal PrivateEndpointConnectionProperties(HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState) - { - GroupIds = new ChangeTrackingList(); - PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; - } - - /// Initializes a new instance of . - /// The group ids for the private endpoint resource. - /// The private endpoint resource. - /// A collection of information about the state of the connection between service consumer and provider. - /// The provisioning state of the private endpoint connection resource. - /// Keeps track of any properties unknown to the library. - internal PrivateEndpointConnectionProperties(IReadOnlyList groupIds, PrivateEndpoint privateEndpoint, HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState, HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) - { - GroupIds = groupIds; - PrivateEndpoint = privateEndpoint; - PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; - ProvisioningState = provisioningState; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The group ids for the private endpoint resource. - public IReadOnlyList GroupIds { get; } - - /// The private endpoint resource. - internal PrivateEndpoint PrivateEndpoint { get; } - - /// A collection of information about the state of the connection between service consumer and provider. - public HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; } - - /// The provisioning state of the private endpoint connection resource. - public HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } - - /// The resource identifier of the private endpoint. - public ResourceIdentifier PrivateEndpointId - { - get - { - return PrivateEndpoint.Id; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs deleted file mode 100644 index 48ab6b834230..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a PrivateEndpointConnectionResource list operation. - internal partial class PrivateEndpointConnectionResourceListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal PrivateEndpointConnectionResourceListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionResourceListResult 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 DeserializePrivateEndpointConnectionResourceListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceListResult)} 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(PrivateEndpointConnectionResourceListResult)} 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. - PrivateEndpointConnectionResourceListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static PrivateEndpointConnectionResourceListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializePrivateEndpointConnectionResourceListResult(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 virtual 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(PrivateEndpointConnectionResourceListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (PrivateEndpointConnectionResourceData item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - PrivateEndpointConnectionResourceListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionResourceListResult 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(PrivateEndpointConnectionResourceListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionResourceListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateEndpointConnectionResourceListResult DeserializePrivateEndpointConnectionResourceListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateEndpointConnectionResourceListResult(value, nextLink, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs deleted file mode 100644 index 4b7dd0430f0d..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs +++ /dev/null @@ -1,45 +0,0 @@ -// 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.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The response of a PrivateEndpointConnectionResource list operation. - internal partial class PrivateEndpointConnectionResourceListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The PrivateEndpointConnectionResource items on this page. - internal PrivateEndpointConnectionResourceListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The PrivateEndpointConnectionResource items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal PrivateEndpointConnectionResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The PrivateEndpointConnectionResource items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs deleted file mode 100644 index 2e918ff45c13..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// PATCH model for private endpoint connections. - public partial class PrivateEndpointConnectionUpdate : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionUpdate 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 DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionUpdate)} 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(PrivateEndpointConnectionUpdate)} 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. - PrivateEndpointConnectionUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(PrivateEndpointConnectionUpdate privateEndpointConnectionUpdate) - { - if (privateEndpointConnectionUpdate == null) - { - return null; - } - return RequestContent.Create(privateEndpointConnectionUpdate, 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 virtual 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(PrivateEndpointConnectionUpdate)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - PrivateEndpointConnectionUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionUpdate 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(PrivateEndpointConnectionUpdate)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateEndpointConnectionUpdate DeserializePrivateEndpointConnectionUpdate(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - OptionalPropertiesUpdateableProperties properties = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = OptionalPropertiesUpdateableProperties.DeserializeOptionalPropertiesUpdateableProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateEndpointConnectionUpdate(properties, additionalBinaryDataProperties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs deleted file mode 100644 index ab799a814eb1..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// PATCH model for private endpoint connections. - public partial class PrivateEndpointConnectionUpdate - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public PrivateEndpointConnectionUpdate() - { - } - - /// Initializes a new instance of . - /// The private endpoint connection properties. - /// Keeps track of any properties unknown to the library. - internal PrivateEndpointConnectionUpdate(OptionalPropertiesUpdateableProperties properties, IDictionary additionalBinaryDataProperties) - { - Properties = properties; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The private endpoint connection properties. - public OptionalPropertiesUpdateableProperties Properties { get; set; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs deleted file mode 100644 index df75f3546fc7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The provisioning state. - public readonly partial struct ProvisioningState : IEquatable - { - private readonly string _value; - /// Provisioning completed successfully. - private const string SucceededValue = "Succeeded"; - /// Provisioning failed. - private const string FailedValue = "Failed"; - /// Provisioning was canceled. - private const string CanceledValue = "Canceled"; - /// Provisioning is in progress. - private const string InProgressValue = "InProgress"; - /// Provisioning is in progress. - private const string ProvisioningValue = "Provisioning"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public ProvisioningState(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Provisioning completed successfully. - public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); - - /// Provisioning failed. - public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); - - /// Provisioning was canceled. - public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); - - /// Provisioning is in progress. - public static ProvisioningState InProgress { get; } = new ProvisioningState(InProgressValue); - - /// Provisioning is in progress. - public static ProvisioningState Provisioning { get; } = new ProvisioningState(ProvisioningValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); - - /// Converts a string to a . - /// The value. - public static implicit operator ProvisioningState?(string value) => value == null ? null : new ProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); - - /// - public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs deleted file mode 100644 index 1e89750485a2..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Indicates if public network access is enabled or not. - public readonly partial struct PublicNetworkAccessState : IEquatable - { - private readonly string _value; - /// Public network access is enabled. - private const string EnabledValue = "Enabled"; - /// Public network access is disabled. - private const string DisabledValue = "Disabled"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public PublicNetworkAccessState(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Public network access is enabled. - public static PublicNetworkAccessState Enabled { get; } = new PublicNetworkAccessState(EnabledValue); - - /// Public network access is disabled. - public static PublicNetworkAccessState Disabled { get; } = new PublicNetworkAccessState(DisabledValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(PublicNetworkAccessState left, PublicNetworkAccessState right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(PublicNetworkAccessState left, PublicNetworkAccessState right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator PublicNetworkAccessState(string value) => new PublicNetworkAccessState(value); - - /// Converts a string to a . - /// The value. - public static implicit operator PublicNetworkAccessState?(string value) => value == null ? null : new PublicNetworkAccessState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is PublicNetworkAccessState other && Equals(other); - - /// - public bool Equals(PublicNetworkAccessState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs deleted file mode 100644 index 333d760e3e66..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Role of the replica. - public readonly partial struct ReplicaRole : IEquatable - { - private readonly string _value; - /// Read-only replica. - private const string ReadValue = "Read"; - /// ReadWrite replica. - private const string ReadWriteValue = "ReadWrite"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public ReplicaRole(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Read-only replica. - public static ReplicaRole Read { get; } = new ReplicaRole(ReadValue); - - /// ReadWrite replica. - public static ReplicaRole ReadWrite { get; } = new ReplicaRole(ReadWriteValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(ReplicaRole left, ReplicaRole right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(ReplicaRole left, ReplicaRole right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator ReplicaRole(string value) => new ReplicaRole(value); - - /// Converts a string to a . - /// The value. - public static implicit operator ReplicaRole?(string value) => value == null ? null : new ReplicaRole(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ReplicaRole other && Equals(other); - - /// - public bool Equals(ReplicaRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs deleted file mode 100644 index 2ea70b01249b..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// Current states. - public readonly partial struct State : IEquatable - { - private readonly string _value; - /// Is ready and operational. - private const string ReadyValue = "Ready"; - /// Is being dropped/deleted. - private const string DroppingValue = "Dropping"; - /// Is disabled. - private const string DisabledValue = "Disabled"; - /// Is starting up. - private const string StartingValue = "Starting"; - /// Is stopping. - private const string StoppingValue = "Stopping"; - /// Is stopped. - private const string StoppedValue = "Stopped"; - /// Is being updated. - private const string UpdatingValue = "Updating"; - /// Is healthy. - private const string HealthyValue = "Healthy"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public State(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Is ready and operational. - public static State Ready { get; } = new State(ReadyValue); - - /// Is being dropped/deleted. - public static State Dropping { get; } = new State(DroppingValue); - - /// Is disabled. - public static State Disabled { get; } = new State(DisabledValue); - - /// Is starting up. - public static State Starting { get; } = new State(StartingValue); - - /// Is stopping. - public static State Stopping { get; } = new State(StoppingValue); - - /// Is stopped. - public static State Stopped { get; } = new State(StoppedValue); - - /// Is being updated. - public static State Updating { get; } = new State(UpdatingValue); - - /// Is healthy. - public static State Healthy { get; } = new State(HealthyValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(State left, State right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(State left, State right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator State(string value) => new State(value); - - /// Converts a string to a . - /// The value. - public static implicit operator State?(string value) => value == null ? null : new State(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is State other && Equals(other); - - /// - public bool Equals(State other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs deleted file mode 100644 index eaea4466a7a7..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.HorizonDb; - -namespace Azure.ResourceManager.HorizonDb.Models -{ - /// The zone redundancy option for the cluster. - public readonly partial struct ZonePlacementPolicy : IEquatable - { - private readonly string _value; - /// Enforce zonal redundancy. - private const string StrictValue = "Strict"; - /// Best-effort placement (default). - private const string BestEffortValue = "BestEffort"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public ZonePlacementPolicy(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Enforce zonal redundancy. - public static ZonePlacementPolicy Strict { get; } = new ZonePlacementPolicy(StrictValue); - - /// Best-effort placement (default). - public static ZonePlacementPolicy BestEffort { get; } = new ZonePlacementPolicy(BestEffortValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(ZonePlacementPolicy left, ZonePlacementPolicy right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(ZonePlacementPolicy left, ZonePlacementPolicy right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator ZonePlacementPolicy(string value) => new ZonePlacementPolicy(value); - - /// Converts a string to a . - /// The value. - public static implicit operator ZonePlacementPolicy?(string value) => value == null ? null : new ZonePlacementPolicy(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ZonePlacementPolicy other && Equals(other); - - /// - public bool Equals(ZonePlacementPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs deleted file mode 100644 index a97098e80a55..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs +++ /dev/null @@ -1,39 +0,0 @@ -// 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 PrivateEndpointConnectionResource : IJsonModel - { - private static IJsonModel s_dataDeserializationInstance; - - private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new PrivateEndpointConnectionResourceData(); - - /// 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. - PrivateEndpointConnectionResourceData 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. - PrivateEndpointConnectionResourceData 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/PrivateEndpointConnectionResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs deleted file mode 100644 index 6bc8ca25f279..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Diagnostics; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.HorizonDb -{ - /// - /// A class representing a PrivateEndpointConnectionResource 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 GetPrivateEndpointConnectionResources method. - /// - public partial class PrivateEndpointConnectionResource : ArmResource - { - private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; - private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; - private readonly PrivateEndpointConnectionResourceData _data; - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/privateEndpointConnections"; - - /// Initializes a new instance of PrivateEndpointConnectionResource for mocking. - protected PrivateEndpointConnectionResource() - { - } - - /// Initializes a new instance of class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal PrivateEndpointConnectionResource(ArmClient client, PrivateEndpointConnectionResourceData 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 PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(ResourceType, out string privateEndpointConnectionResourceApiVersion); - _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics); - _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "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 PrivateEndpointConnectionResourceData 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. - /// The privateEndpointConnectionName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) - { - string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}"; - 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), id); - } - } - - /// - /// Gets a private endpoint connection. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_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 = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a private endpoint connection. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs deleted file mode 100644 index 56230c5554e9..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs +++ /dev/null @@ -1,463 +0,0 @@ -// 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; - -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 GetPrivateEndpointConnectionResources method from an instance of . - /// - public partial class PrivateEndpointConnectionResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; - private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; - - /// Initializes a new instance of PrivateEndpointConnectionResourceCollection for mocking. - protected PrivateEndpointConnectionResourceCollection() - { - } - - /// 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 PrivateEndpointConnectionResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - TryGetApiVersion(PrivateEndpointConnectionResource.ResourceType, out string privateEndpointConnectionResourceApiVersion); - _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", PrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); - _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "2026-01-20-preview"); - ValidateResourceId(id); - } - - /// - [Conditional("DEBUG")] - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != HorizonDbClusterResource.ResourceType) - { - throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); - } - } - - /// - /// Gets a private endpoint connection. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// 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> GetAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a private endpoint connection. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// 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 Response Get(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Lists private endpoint connections in a HorizonDb cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_List. - /// - /// - /// 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 HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new PrivateEndpointConnectionResource(Client, data)); - } - - /// - /// Lists private endpoint connections in a HorizonDb cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_List. - /// - /// - /// 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 HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new PrivateEndpointConnectionResource(Client, data)); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// 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> ExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)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}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// 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 Response Exists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)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}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// 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> GetIfExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); - await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new PrivateEndpointConnectionResource(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}/privateEndpointConnections/{privateEndpointConnectionName}. - /// - /// - /// Operation Id. - /// HorizonDbPrivateEndpointConnections_Get. - /// - /// - /// Default Api Version. - /// 2026-01-20-preview. - /// - /// - /// - /// 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 NullableResponse GetIfExists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); - Pipeline.Send(message, context.CancellationToken); - Response result = message.Response; - Response response = default; - switch (result.Status) - { - case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); - break; - case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); - break; - default: - throw new RequestFailedException(result); - } - if (response.Value == null) - { - return new NoValueResponse(response.GetRawResponse()); - } - return Response.FromValue(new PrivateEndpointConnectionResource(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/PrivateEndpointConnectionResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs deleted file mode 100644 index 31c98aef095a..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs +++ /dev/null @@ -1,184 +0,0 @@ -// 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 -{ - /// A private endpoint connection resource. - public partial class PrivateEndpointConnectionResourceData : ResourceData, IJsonModel - { - /// 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 DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceData)} 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(PrivateEndpointConnectionResourceData)} 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. - PrivateEndpointConnectionResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static PrivateEndpointConnectionResourceData FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializePrivateEndpointConnectionResourceData(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(PrivateEndpointConnectionResourceData)} 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. - PrivateEndpointConnectionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)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(PrivateEndpointConnectionResourceData)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpointConnectionResourceData(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(); - PrivateEndpointConnectionProperties 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("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateEndpointConnectionResourceData( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties); - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs deleted file mode 100644 index 27886131558f..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 -{ - /// A private endpoint connection resource. - public partial class PrivateEndpointConnectionResourceData : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal PrivateEndpointConnectionResourceData() - { - } - - /// 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. - /// The private endpoint connection properties. - internal PrivateEndpointConnectionResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - } - - /// The private endpoint connection properties. - public PrivateEndpointConnectionProperties Properties { get; } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs deleted file mode 100644 index dee09802fe70..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal static partial class ProviderConstants - { - /// Gets the DefaultProviderNamespace. - public static string DefaultProviderNamespace { get; } = ClientDiagnostics.GetResourceProviderNamespace(typeof(ProviderConstants).Assembly); - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs deleted file mode 100644 index fdf8c1f18ca5..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbClusters - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbClusters for mocking. - protected HorizonDbClusters() - { - } - - /// Initializes a new instance of HorizonDbClusters. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbClusters(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Put; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Patch; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Delete; - return message; - } - - internal HttpMessage CreateGetByResourceGroupRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetByResourceGroupRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetBySubscriptionRequest(Guid subscriptionId, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subscriptionId, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs deleted file mode 100644 index a40c5ac96033..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbFirewallRules - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbFirewallRules for mocking. - protected HorizonDbFirewallRules() - { - } - - /// Initializes a new instance of HorizonDbFirewallRules. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbFirewallRules(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/firewallRules/", false); - uri.AppendPath(firewallRuleName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/firewallRules", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/firewallRules/", false); - uri.AppendPath(firewallRuleName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Put; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/firewallRules/", false); - uri.AppendPath(firewallRuleName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Delete; - return message; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs deleted file mode 100644 index cf2040bfa4a4..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbParameterGroups - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbParameterGroups for mocking. - protected HorizonDbParameterGroups() - { - } - - /// Initializes a new instance of HorizonDbParameterGroups. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbParameterGroups(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); - uri.AppendPath(parameterGroupName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); - uri.AppendPath(parameterGroupName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Put; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); - uri.AppendPath(parameterGroupName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Patch; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); - uri.AppendPath(parameterGroupName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Delete; - return message; - } - - internal HttpMessage CreateGetByResourceGroupRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetByResourceGroupRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetBySubscriptionRequest(Guid subscriptionId, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subscriptionId, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetConnectionsRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); - uri.AppendPath(parameterGroupName, true); - uri.AppendPath("/connections", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetConnectionsRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetVersionsRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); - uri.AppendPath(parameterGroupName, true); - uri.AppendPath("/versions", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - if (version != null) - { - uri.AppendQuery("version", TypeFormatters.ConvertToString(version), true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetVersionsRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs deleted file mode 100644 index 66b35da2f6cb..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbPools - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbPools for mocking. - protected HorizonDbPools() - { - } - - /// Initializes a new instance of HorizonDbPools. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbPools(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs deleted file mode 100644 index ccef45986788..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbPrivateEndpointConnections - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbPrivateEndpointConnections for mocking. - protected HorizonDbPrivateEndpointConnections() - { - } - - /// Initializes a new instance of HorizonDbPrivateEndpointConnections. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbPrivateEndpointConnections(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/privateEndpointConnections/", false); - uri.AppendPath(privateEndpointConnectionName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/privateEndpointConnections", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string privateEndpointConnectionName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/privateEndpointConnections/", false); - uri.AppendPath(privateEndpointConnectionName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Patch; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string privateEndpointConnectionName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/privateEndpointConnections/", false); - uri.AppendPath(privateEndpointConnectionName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Delete; - return message; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs deleted file mode 100644 index 30b40cd21ee2..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbPrivateLinkResources - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbPrivateLinkResources for mocking. - protected HorizonDbPrivateLinkResources() - { - } - - /// Initializes a new instance of HorizonDbPrivateLinkResources. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbPrivateLinkResources(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string groupName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/privateLinkResources/", false); - uri.AppendPath(groupName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/privateLinkResources", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - } -} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs deleted file mode 100644 index 45fe4868ae61..000000000000 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.HorizonDb -{ - internal partial class HorizonDbReplicas - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of HorizonDbReplicas for mocking. - protected HorizonDbReplicas() - { - } - - /// Initializes a new instance of HorizonDbReplicas. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal HorizonDbReplicas(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/replicas/", false); - uri.AppendPath(replicaName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/replicas", false); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - if (nextPage.IsAbsoluteUri) - { - uri.Reset(nextPage); - } - else - { - uri.Reset(new Uri(_endpoint, nextPage)); - } - if (_apiVersion != null) - { - uri.UpdateQuery("api-version", _apiVersion); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Get; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/replicas/", false); - uri.AppendPath(replicaName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Put; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/replicas/", false); - uri.AppendPath(replicaName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Patch; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); - uri.AppendPath(clusterName, true); - uri.AppendPath("/pools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/replicas/", false); - uri.AppendPath(replicaName, true); - if (_apiVersion != null) - { - uri.AppendQuery("api-version", _apiVersion, true); - } - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Delete; - return message; - } - } -} From 41dcf66ab818caf14aad40992f341d07b9f74c33 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 29 Apr 2026 09:06:33 +0800 Subject: [PATCH 5/7] Remove Generated and update tsp-location commit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml index 17357b25b1ec..9486db51aef3 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/tsp-location.yaml @@ -1,5 +1,5 @@ directory: specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb -commit: f6e1fbd6268be7712bf96a516ba846f7d42e2baa +commit: 5685afa7f69ca476bf06b723baa4af53b721a8e3 repo: Azure/azure-rest-api-specs additionalDirectories: From 108588a2b90e8f5230f85b23867338d0ad01fbc4 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 29 Apr 2026 09:09:10 +0800 Subject: [PATCH 6/7] Regenerate code from latest spec commit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/Generated/ArmHorizonDBModelFactory.cs | 399 +++++++++ ...ByResourceGroupAsyncCollectionResultOfT.cs | 81 ++ ...rsGetByResourceGroupCollectionResultOfT.cs | 80 ++ ...tBySubscriptionAsyncCollectionResultOfT.cs | 78 ++ ...ersGetBySubscriptionCollectionResultOfT.cs | 77 ++ ...wallRulesGetAllAsyncCollectionResultOfT.cs | 87 ++ ...bFirewallRulesGetAllCollectionResultOfT.cs | 86 ++ ...ByResourceGroupAsyncCollectionResultOfT.cs | 81 ++ ...psGetByResourceGroupCollectionResultOfT.cs | 80 ++ ...tBySubscriptionAsyncCollectionResultOfT.cs | 78 ++ ...upsGetBySubscriptionCollectionResultOfT.cs | 77 ++ ...sGetConnectionsAsyncCollectionResultOfT.cs | 84 ++ ...GroupsGetConnectionsCollectionResultOfT.cs | 83 ++ ...oupsGetVersionsAsyncCollectionResultOfT.cs | 87 ++ ...terGroupsGetVersionsCollectionResultOfT.cs | 86 ++ ...onDbPoolsGetAllAsyncCollectionResultOfT.cs | 84 ++ ...HorizonDbPoolsGetAllCollectionResultOfT.cs | 83 ++ ...nnectionsGetAllAsyncCollectionResultOfT.cs | 84 ++ ...intConnectionsGetAllCollectionResultOfT.cs | 83 ++ ...ResourcesGetAllAsyncCollectionResultOfT.cs | 84 ++ ...eLinkResourcesGetAllCollectionResultOfT.cs | 83 ++ ...bReplicasGetAllAsyncCollectionResultOfT.cs | 87 ++ ...izonDbReplicasGetAllCollectionResultOfT.cs | 86 ++ .../Extensions/HorizonDBExtensions.cs | 427 +++++++++ .../Extensions/MockableHorizonDBArmClient.cs | 92 ++ .../MockableHorizonDBResourceGroupResource.cs | 389 +++++++++ .../MockableHorizonDBSubscriptionResource.cs | 159 ++++ .../Generated/HorizonDbClusterCollection.cs | 580 ++++++++++++ .../HorizonDbClusterData.Serialization.cs | 229 +++++ .../src/Generated/HorizonDbClusterData.cs | 46 + .../HorizonDbClusterResource.Serialization.cs | 39 + .../src/Generated/HorizonDbClusterResource.cs | 781 +++++++++++++++++ .../HorizonDbFirewallRuleCollection.cs | 591 +++++++++++++ ...HorizonDbFirewallRuleData.Serialization.cs | 194 +++++ .../Generated/HorizonDbFirewallRuleData.cs | 43 + ...zonDbFirewallRuleResource.Serialization.cs | 39 + .../HorizonDbFirewallRuleResource.cs | 407 +++++++++ .../HorizonDbParameterGroupCollection.cs | 580 ++++++++++++ ...rizonDbParameterGroupData.Serialization.cs | 229 +++++ .../Generated/HorizonDbParameterGroupData.cs | 46 + ...nDbParameterGroupResource.Serialization.cs | 39 + .../HorizonDbParameterGroupResource.cs | 824 ++++++++++++++++++ .../src/Generated/HorizonDbPoolCollection.cs | 463 ++++++++++ .../HorizonDbPoolData.Serialization.cs | 223 +++++ .../src/Generated/HorizonDbPoolData.cs | 49 ++ .../HorizonDbPoolResource.Serialization.cs | 39 + .../src/Generated/HorizonDbPoolResource.cs | 256 ++++++ ...izonDbPrivateLinkResource.Serialization.cs | 39 + .../Generated/HorizonDbPrivateLinkResource.cs | 190 ++++ .../HorizonDbPrivateLinkResourceCollection.cs | 463 ++++++++++ ...DbPrivateLinkResourceData.Serialization.cs | 184 ++++ .../HorizonDbPrivateLinkResourceData.cs | 43 + .../Generated/HorizonDbReplicaCollection.cs | 591 +++++++++++++ .../HorizonDbReplicaData.Serialization.cs | 194 +++++ .../src/Generated/HorizonDbReplicaData.cs | 43 + .../HorizonDbReplicaResource.Serialization.cs | 39 + .../src/Generated/HorizonDbReplicaResource.cs | 408 +++++++++ .../src/Generated/Internal/Argument.cs | 113 +++ .../Internal/AsyncPageableWrapper.cs | 48 + .../Internal/ChangeTrackingDictionary.cs | 189 ++++ .../Generated/Internal/ChangeTrackingList.cs | 168 ++++ .../Internal/ClientPipelineExtensions.cs | 72 ++ .../Internal/CodeGenMemberAttribute.cs | 20 + .../Internal/CodeGenSerializationAttribute.cs | 48 + .../Internal/CodeGenSuppressAttribute.cs | 29 + .../Internal/CodeGenTypeAttribute.cs | 24 + .../src/Generated/Internal/ErrorResult.cs | 32 + .../Internal/ModelSerializationExtensions.cs | 268 ++++++ .../src/Generated/Internal/Optional.cs | 51 ++ .../src/Generated/Internal/PageableWrapper.cs | 47 + .../RawRequestUriBuilderExtensions.cs | 60 ++ .../Internal/RequestContextExtensions.cs | 26 + .../Generated/Internal/SerializationFormat.cs | 49 ++ .../src/Generated/Internal/TypeFormatters.cs | 181 ++++ .../HorizonDBArmOperation.cs | 106 +++ .../HorizonDBArmOperationOfT.cs | 113 +++ ...rivateEndpointConnectionOperationSource.cs | 45 + .../HorizonDbClusterOperationSource.cs | 49 ++ .../HorizonDbFirewallRuleOperationSource.cs | 49 ++ .../HorizonDbParameterGroupOperationSource.cs | 49 ++ .../HorizonDbReplicaOperationSource.cs | 49 ++ .../AzureResourceManagerHorizonDBContext.cs | 68 ++ .../src/Generated/Models/CreateModeCluster.cs | 76 ++ .../src/Generated/Models/CreateModePool.cs | 71 ++ ...PrivateEndpointConnection.Serialization.cs | 184 ++++ .../HorizonDBPrivateEndpointConnection.cs | 42 + ...vateEndpointConnectionProvisioningState.cs | 81 ++ ...BPrivateEndpointServiceConnectionStatus.cs | 76 ++ ...ateLinkResourceProperties.Serialization.cs | 215 +++++ .../HorizonDBPrivateLinkResourceProperties.cs | 49 ++ ...inkServiceConnectionState.Serialization.cs | 167 ++++ ...izonDBPrivateLinkServiceConnectionState.cs | 46 + ...orizonDbClusterListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbClusterListResult.cs | 45 + ...GroupConnectionProperties.Serialization.cs | 172 ++++ ...usterParameterGroupConnectionProperties.cs | 47 + .../HorizonDbClusterPatch.Serialization.cs | 194 +++++ .../Generated/Models/HorizonDbClusterPatch.cs | 43 + ...orizonDbClusterProperties.Serialization.cs | 378 ++++++++ .../Models/HorizonDbClusterProperties.cs | 132 +++ ...rPropertiesForPatchUpdate.Serialization.cs | 171 ++++ ...orizonDbClusterPropertiesForPatchUpdate.cs | 46 + ...nDbFirewallRuleListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbFirewallRuleListResult.cs | 45 + ...nDbFirewallRuleProperties.Serialization.cs | 177 ++++ .../Models/HorizonDbFirewallRuleProperties.cs | 60 ++ ...GroupConnectionProperties.Serialization.cs | 168 ++++ ...zonDbParameterGroupConnectionProperties.cs | 47 + ...ctionPropertiesListResult.Serialization.cs | 176 ++++ ...eterGroupConnectionPropertiesListResult.cs | 44 + ...bParameterGroupListResult.Serialization.cs | 176 ++++ .../HorizonDbParameterGroupListResult.cs | 45 + ...izonDbParameterGroupPatch.Serialization.cs | 194 +++++ .../Models/HorizonDbParameterGroupPatch.cs | 43 + ...bParameterGroupProperties.Serialization.cs | 233 +++++ .../HorizonDbParameterGroupProperties.cs | 63 ++ ...pPropertiesForPatchUpdate.Serialization.cs | 181 ++++ ...bParameterGroupPropertiesForPatchUpdate.cs | 48 + .../HorizonDbPoolListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbPoolListResult.cs | 45 + .../HorizonDbPoolProperties.Serialization.cs | 224 +++++ .../Models/HorizonDbPoolProperties.cs | 62 ++ ...ateLinkResourceListResult.Serialization.cs | 176 ++++ .../HorizonDbPrivateLinkResourceListResult.cs | 45 + ...orizonDbReplicaListResult.Serialization.cs | 176 ++++ .../Models/HorizonDbReplicaListResult.cs | 45 + .../HorizonDbReplicaPatch.Serialization.cs | 156 ++++ .../Generated/Models/HorizonDbReplicaPatch.cs | 53 ++ ...orizonDbReplicaProperties.Serialization.cs | 203 +++++ .../Models/HorizonDbReplicaProperties.cs | 56 ++ ...aPropertiesForPatchUpdate.Serialization.cs | 145 +++ ...orizonDbReplicaPropertiesForPatchUpdate.cs | 36 + .../Generated/Models/Network.Serialization.cs | 145 +++ .../src/Generated/Models/Network.cs | 36 + ...rtiesUpdateableProperties.Serialization.cs | 160 ++++ .../OptionalPropertiesUpdateableProperties.cs | 51 ++ .../ParameterProperties.Serialization.cs | 251 ++++++ .../Generated/Models/ParameterProperties.cs | 76 ++ .../Models/PrivateEndpoint.Serialization.cs | 146 ++++ .../src/Generated/Models/PrivateEndpoint.cs | 37 + ...pointConnectionProperties.Serialization.cs | 210 +++++ .../PrivateEndpointConnectionProperties.cs | 65 ++ ...nectionResourceListResult.Serialization.cs | 176 ++++ ...ateEndpointConnectionResourceListResult.cs | 45 + ...eEndpointConnectionUpdate.Serialization.cs | 156 ++++ .../Models/PrivateEndpointConnectionUpdate.cs | 36 + .../src/Generated/Models/ProvisioningState.cs | 86 ++ .../Models/PublicNetworkAccessState.cs | 71 ++ .../src/Generated/Models/ReplicaRole.cs | 71 ++ .../src/Generated/Models/State.cs | 101 +++ .../Generated/Models/ZonePlacementPolicy.cs | 71 ++ ...ndpointConnectionResource.Serialization.cs | 39 + .../PrivateEndpointConnectionResource.cs | 190 ++++ ...ateEndpointConnectionResourceCollection.cs | 463 ++++++++++ ...intConnectionResourceData.Serialization.cs | 184 ++++ .../PrivateEndpointConnectionResourceData.cs | 43 + .../src/Generated/ProviderConstants.cs | 17 + .../HorizonDbClustersRestOperations.cs | 221 +++++ .../HorizonDbFirewallRulesRestOperations.cs | 171 ++++ .../HorizonDbParameterGroupsRestOperations.cs | 317 +++++++ .../HorizonDbPoolsRestOperations.cs | 114 +++ ...rivateEndpointConnectionsRestOperations.cs | 159 ++++ ...zonDbPrivateLinkResourcesRestOperations.cs | 114 +++ .../HorizonDbReplicasRestOperations.cs | 199 +++++ 164 files changed, 23235 insertions(+) create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDBModelFactory.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDBExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBArmClient.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBResourceGroupResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBSubscriptionResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperation.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperationOfT.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBPrivateEndpointConnectionOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnectionProvisioningState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointServiceConnectionStatus.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs create mode 100644 sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs 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..1d50e42cac5f --- /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..515857a5e1bb --- /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..e7216391e6fe --- /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..a8f737a46218 --- /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..d8e926899848 --- /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..1cb0ede4eca7 --- /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..51274fd28184 --- /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..5b330d7dfc19 --- /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..67e49f6fe814 --- /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..e04602422fb1 --- /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..d960912ac87c --- /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..64b9fe64b2a3 --- /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..c66918e07a72 --- /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..263616553aeb --- /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..eb970ad014ea --- /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..7449e8b96558 --- /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..161839755875 --- /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..26f1e9f0e374 --- /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..43460e5a8659 --- /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..4b2550d01e09 --- /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..98ae56584c42 --- /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..26b55e38f707 --- /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..3b46b34a68fd --- /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..dc663fed6e1d --- /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..d47f9e8b79bb --- /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..187c64443c84 --- /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..70a0683eb60d --- /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..bff60bc173b9 --- /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), 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..6f6f875ccf28 --- /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..8b6884c54c5e --- /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..220cac90fbd1 --- /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..b15723801996 --- /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), 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 . + /// An object representing collection of HorizonDbPools and their operations over a HorizonDbPoolResource. + public virtual HorizonDbPoolCollection GetHorizonDbPools() + { + return GetCachedClient(client => new HorizonDbPoolCollection(client, Id)); + } + + /// Gets information about a HorizonDb pool. + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbPoolAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + return await GetHorizonDbPools().GetAsync(poolName, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about a HorizonDb pool. + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbPool(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + return GetHorizonDbPools().Get(poolName, cancellationToken); + } + + /// Gets a collection of PrivateEndpointConnectionResources in the . + /// An object representing collection of PrivateEndpointConnectionResources and their operations over a PrivateEndpointConnectionResource. + public virtual PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() + { + return GetCachedClient(client => new PrivateEndpointConnectionResourceCollection(client, Id)); + } + + /// Gets a private endpoint connection. + /// 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. + [ForwardsClientCalls] + public virtual async Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + return await GetPrivateEndpointConnectionResources().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + } + + /// Gets a private endpoint connection. + /// 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. + [ForwardsClientCalls] + public virtual Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + return GetPrivateEndpointConnectionResources().Get(privateEndpointConnectionName, cancellationToken); + } + + /// Gets a collection of HorizonDbPrivateLinkResources in the . + /// An object representing collection of HorizonDbPrivateLinkResources and their operations over a HorizonDbPrivateLinkResource. + public virtual HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() + { + return GetCachedClient(client => new HorizonDbPrivateLinkResourceCollection(client, Id)); + } + + /// Gets a private link resource. + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + return await GetHorizonDbPrivateLinkResources().GetAsync(groupName, cancellationToken).ConfigureAwait(false); + } + + /// Gets a private link resource. + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbPrivateLinkResource(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + return GetHorizonDbPrivateLinkResources().Get(groupName, cancellationToken); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs new file mode 100644 index 000000000000..c880f97ac86c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleCollection.cs @@ -0,0 +1,591 @@ +// 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; + +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 GetHorizonDbFirewallRules method from an instance of . + /// + public partial class HorizonDbFirewallRuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbFirewallRulesClientDiagnostics; + private readonly HorizonDbFirewallRules _horizonDbFirewallRulesRestClient; + + /// Initializes a new instance of HorizonDbFirewallRuleCollection for mocking. + protected HorizonDbFirewallRuleCollection() + { + } + + /// 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 HorizonDbFirewallRuleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbFirewallRuleResource.ResourceType, out string horizonDbFirewallRuleApiVersion); + _horizonDbFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", HorizonDbFirewallRuleResource.ResourceType.Namespace, Diagnostics); + _horizonDbFirewallRulesRestClient = new HorizonDbFirewallRules(_horizonDbFirewallRulesClientDiagnostics, Pipeline, Endpoint, horizonDbFirewallRuleApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbPoolResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbPoolResource.ResourceType), id); + } + } + + /// + /// Creates a new HorizonDb firewall rule or updates an existing rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 firewall rule. + /// 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 firewallRuleName, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + 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 firewall rule or updates an existing rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 firewall rule. + /// 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 firewallRuleName, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + 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 firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb firewall rules in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_List. + /// + /// + /// 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 HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT( + _horizonDbFirewallRulesRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbFirewallRuleResource(Client, data)); + } + + /// + /// Lists all HorizonDb firewall rules in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_List. + /// + /// + /// 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 HorizonDbFirewallRulesGetAllCollectionResultOfT( + _horizonDbFirewallRulesRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbFirewallRuleResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)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}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)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}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(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}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, firewallRuleName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbFirewallRuleData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(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/HorizonDbFirewallRuleData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs new file mode 100644 index 000000000000..fc9f408d57a7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.Serialization.cs @@ -0,0 +1,194 @@ +// 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 firewall rule. + public partial class HorizonDbFirewallRuleData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbFirewallRuleData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbFirewallRuleData)} 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(HorizonDbFirewallRuleData)} 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. + HorizonDbFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbFirewallRuleData)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(HorizonDbFirewallRuleData horizonDbFirewallRuleData) + { + if (horizonDbFirewallRuleData == null) + { + return null; + } + return RequestContent.Create(horizonDbFirewallRuleData, ModelSerializationExtensions.WireOptions); + } + + /// The to deserialize the from. + internal static HorizonDbFirewallRuleData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbFirewallRuleData(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(HorizonDbFirewallRuleData)} 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. + HorizonDbFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbFirewallRuleData)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(HorizonDbFirewallRuleData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbFirewallRuleData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbFirewallRuleData DeserializeHorizonDbFirewallRuleData(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(); + HorizonDbFirewallRuleProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbFirewallRuleProperties.DeserializeHorizonDbFirewallRuleProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbFirewallRuleData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs new file mode 100644 index 000000000000..571939b0344c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleData.cs @@ -0,0 +1,43 @@ +// 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 firewall rule. + public partial class HorizonDbFirewallRuleData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbFirewallRuleData() + { + } + + /// 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. + /// The resource-specific properties for this resource. + internal HorizonDbFirewallRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbFirewallRuleProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbFirewallRuleProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..f42e85c85d50 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.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 HorizonDbFirewallRuleResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbFirewallRuleData(); + + /// 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. + HorizonDbFirewallRuleData 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. + HorizonDbFirewallRuleData 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/HorizonDbFirewallRuleResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs new file mode 100644 index 000000000000..6f5da7836b2e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbFirewallRuleResource.cs @@ -0,0 +1,407 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + /// A class representing a HorizonDbFirewallRule 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 GetHorizonDbFirewallRules method. + /// + public partial class HorizonDbFirewallRuleResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbFirewallRulesClientDiagnostics; + private readonly HorizonDbFirewallRules _horizonDbFirewallRulesRestClient; + private readonly HorizonDbFirewallRuleData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools/firewallRules"; + + /// Initializes a new instance of HorizonDbFirewallRuleResource for mocking. + protected HorizonDbFirewallRuleResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbFirewallRuleResource(ArmClient client, HorizonDbFirewallRuleData 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 HorizonDbFirewallRuleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbFirewallRuleApiVersion); + _horizonDbFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); + _horizonDbFirewallRulesRestClient = new HorizonDbFirewallRules(_horizonDbFirewallRulesClientDiagnostics, Pipeline, Endpoint, horizonDbFirewallRuleApiVersion ?? "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 HorizonDbFirewallRuleData 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. + /// The poolName. + /// The firewallRuleName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}"; + 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), id); + } + } + + /// + /// Gets information about a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbFirewallRuleData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbFirewallRuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a HorizonDb firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation(_horizonDbFirewallRulesClientDiagnostics, 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 firewall rule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_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 = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation(_horizonDbFirewallRulesClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletionResponse(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a HorizonDbFirewallRule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_CreateOrUpdate. + /// + /// + /// 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. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + 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; + } + } + + /// + /// Update a HorizonDbFirewallRule. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}. + /// + /// + /// Operation Id. + /// HorizonDbFirewallRules_CreateOrUpdate. + /// + /// + /// 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. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, HorizonDbFirewallRuleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbFirewallRulesClientDiagnostics.CreateScope("HorizonDbFirewallRuleResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbFirewallRulesRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbFirewallRuleData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbFirewallRuleOperationSource(Client), + _horizonDbFirewallRulesClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletion(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.cs new file mode 100644 index 000000000000..b6d3b5388dfd --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupCollection.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 GetHorizonDbParameterGroups method from an instance of . + /// + public partial class HorizonDbParameterGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics; + private readonly HorizonDbParameterGroups _horizonDbParameterGroupsRestClient; + + /// Initializes a new instance of HorizonDbParameterGroupCollection for mocking. + protected HorizonDbParameterGroupCollection() + { + } + + /// 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 HorizonDbParameterGroupCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbParameterGroupResource.ResourceType, out string horizonDbParameterGroupApiVersion); + _horizonDbParameterGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", HorizonDbParameterGroupResource.ResourceType.Namespace, Diagnostics); + _horizonDbParameterGroupsRestClient = new HorizonDbParameterGroups(_horizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, horizonDbParameterGroupApiVersion ?? "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), id); + } + } + + /// + /// Creates a new HorizonDb parameter group or updates an existing parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 parameter group. + /// 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 parameterGroupName, HorizonDbParameterGroupData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, HorizonDbParameterGroupData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 parameter group or updates an existing parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 parameter group. + /// 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 parameterGroupName, HorizonDbParameterGroupData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, HorizonDbParameterGroupData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 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. + public virtual async Task> GetAsync(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// 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. + public virtual Response Get(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb parameter groups in a resource group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Lists all HorizonDb parameter groups in a resource group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// 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. + public virtual async Task> ExistsAsync(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)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/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. + public virtual Response Exists(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)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/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. + public virtual async Task> GetIfExistsAsync(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(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/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. + public virtual NullableResponse GetIfExists(string parameterGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, parameterGroupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbParameterGroupData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(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/HorizonDbParameterGroupData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.Serialization.cs new file mode 100644 index 000000000000..5a921904e679 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.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 parameter group. + public partial class HorizonDbParameterGroupData : TrackedResourceData, IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbParameterGroupData() + { + } + + /// 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 DeserializeHorizonDbParameterGroupData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupData)} 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(HorizonDbParameterGroupData)} 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. + HorizonDbParameterGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbParameterGroupData)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(HorizonDbParameterGroupData horizonDbParameterGroupData) + { + if (horizonDbParameterGroupData == null) + { + return null; + } + return RequestContent.Create(horizonDbParameterGroupData, ModelSerializationExtensions.WireOptions); + } + + /// The to deserialize the from. + internal static HorizonDbParameterGroupData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbParameterGroupData(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(HorizonDbParameterGroupData)} 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. + HorizonDbParameterGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbParameterGroupData)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(HorizonDbParameterGroupData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupData DeserializeHorizonDbParameterGroupData(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; + HorizonDbParameterGroupProperties 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 = HorizonDbParameterGroupProperties.DeserializeHorizonDbParameterGroupProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + tags ?? new ChangeTrackingDictionary(), + location, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.cs new file mode 100644 index 000000000000..b773c61b7041 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupData.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 parameter group. + public partial class HorizonDbParameterGroupData : 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 HorizonDbParameterGroupData(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 HorizonDbParameterGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, HorizonDbParameterGroupProperties properties) : base(id, name, resourceType, systemData, tags, location) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbParameterGroupProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.Serialization.cs new file mode 100644 index 000000000000..ac9462dec19f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.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 HorizonDbParameterGroupResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbParameterGroupData(); + + /// 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. + HorizonDbParameterGroupData 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. + HorizonDbParameterGroupData 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/HorizonDbParameterGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs new file mode 100644 index 000000000000..073aeb8a6888 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbParameterGroupResource.cs @@ -0,0 +1,824 @@ +// 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 HorizonDbParameterGroup 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 GetHorizonDbParameterGroups method. + /// + public partial class HorizonDbParameterGroupResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics; + private readonly HorizonDbParameterGroups _horizonDbParameterGroupsRestClient; + private readonly HorizonDbParameterGroupData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/parameterGroups"; + + /// Initializes a new instance of HorizonDbParameterGroupResource for mocking. + protected HorizonDbParameterGroupResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbParameterGroupResource(ArmClient client, HorizonDbParameterGroupData 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 HorizonDbParameterGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbParameterGroupApiVersion); + _horizonDbParameterGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); + _horizonDbParameterGroupsRestClient = new HorizonDbParameterGroups(_horizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, horizonDbParameterGroupApiVersion ?? "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 HorizonDbParameterGroupData 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 parameterGroupName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}"; + 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), 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. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// 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. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates an existing HorizonDb parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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, HorizonDbParameterGroupPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbParameterGroupPatch.ToRequestContent(patch), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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, HorizonDbParameterGroupPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbParameterGroupPatch.ToRequestContent(patch), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbParameterGroupOperationSource(Client), + _horizonDbParameterGroupsClientDiagnostics, + 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 parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation(_horizonDbParameterGroupsClientDiagnostics, 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 parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbParameterGroupsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation(_horizonDbParameterGroupsClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletionResponse(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists parameter groups filtered by version number. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListVersions. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The version number to filter by. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetVersionsAsync(int? version = default, CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new AsyncPageableWrapper(new HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT( + _horizonDbParameterGroupsRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Name, + version, + context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Lists parameter groups filtered by version number. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListVersions. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The version number to filter by. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetVersions(int? version = default, CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new PageableWrapper(new HorizonDbParameterGroupsGetVersionsCollectionResultOfT( + _horizonDbParameterGroupsRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Name, + version, + context), data => new HorizonDbParameterGroupResource(Client, data)); + } + + /// + /// Gets all connections to a parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListConnections. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetConnectionsAsync(CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + } + + /// + /// Gets all connections to a parameter group. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections. + /// + /// + /// Operation Id. + /// HorizonDbParameterGroups_ListConnections. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetConnections(CancellationToken cancellationToken = default) + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + return new HorizonDbParameterGroupsGetConnectionsCollectionResultOfT(_horizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + } + + /// 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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 = _horizonDbParameterGroupsClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.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 = _horizonDbParameterGroupsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbParameterGroupData.FromResponse(result), result); + return Response.FromValue(new HorizonDbParameterGroupResource(Client, response.Value), response.GetRawResponse()); + } + else + { + HorizonDbParameterGroupData current = Get(cancellationToken: cancellationToken).Value.Data; + HorizonDbParameterGroupPatch patch = new HorizonDbParameterGroupPatch(); + 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; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs new file mode 100644 index 000000000000..477db35949e0 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolCollection.cs @@ -0,0 +1,463 @@ +// 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; + +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 GetHorizonDbPools method from an instance of . + /// + public partial class HorizonDbPoolCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbPoolsClientDiagnostics; + private readonly HorizonDbPools _horizonDbPoolsRestClient; + + /// Initializes a new instance of HorizonDbPoolCollection for mocking. + protected HorizonDbPoolCollection() + { + } + + /// 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 HorizonDbPoolCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbPoolResource.ResourceType, out string horizonDbPoolApiVersion); + _horizonDbPoolsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", HorizonDbPoolResource.ResourceType.Namespace, Diagnostics); + _horizonDbPoolsRestClient = new HorizonDbPools(_horizonDbPoolsClientDiagnostics, Pipeline, Endpoint, horizonDbPoolApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbClusterResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb pools in a cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools. + /// + /// + /// Operation Id. + /// HorizonDbPools_List. + /// + /// + /// 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 HorizonDbPoolsGetAllAsyncCollectionResultOfT(_horizonDbPoolsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPoolResource(Client, data)); + } + + /// + /// Lists all HorizonDb pools in a cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools. + /// + /// + /// Operation Id. + /// HorizonDbPools_List. + /// + /// + /// 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 HorizonDbPoolsGetAllCollectionResultOfT(_horizonDbPoolsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPoolResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)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}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)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}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(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}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb pool. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, poolName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPoolData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(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/HorizonDbPoolData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs new file mode 100644 index 000000000000..df7b86379bc5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.Serialization.cs @@ -0,0 +1,223 @@ +// 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 pool. + public partial class HorizonDbPoolData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbPoolData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPoolData)} 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(HorizonDbPoolData)} 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. + HorizonDbPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPoolData)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPoolData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPoolData(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(HorizonDbPoolData)} does not support writing '{format}' format."); + } + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPoolData)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(HorizonDbPoolData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPoolData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPoolData DeserializeHorizonDbPoolData(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(); + HorizonDbPoolProperties properties = default; + IDictionary tags = 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbPoolProperties.DeserializeHorizonDbPoolProperties(prop.Value, options); + 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 (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPoolData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties, + tags ?? new ChangeTrackingDictionary()); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs new file mode 100644 index 000000000000..01e979e79cd6 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolData.cs @@ -0,0 +1,49 @@ +// 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 pool. + public partial class HorizonDbPoolData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPoolData() + { + Tags = new ChangeTrackingDictionary(); + } + + /// 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. + /// The resource-specific properties for this resource. + /// Resource tags. + internal HorizonDbPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPoolProperties properties, IDictionary tags) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + Tags = tags; + } + + /// The resource-specific properties for this resource. + public HorizonDbPoolProperties Properties { get; } + + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.Serialization.cs new file mode 100644 index 000000000000..c478d72d9cf5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.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 HorizonDbPoolResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPoolData(); + + /// 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. + HorizonDbPoolData 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. + HorizonDbPoolData 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/HorizonDbPoolResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs new file mode 100644 index 000000000000..227d31c83007 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPoolResource.cs @@ -0,0 +1,256 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + /// A class representing a HorizonDbPool 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 GetHorizonDbPools method. + /// + public partial class HorizonDbPoolResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbPoolsClientDiagnostics; + private readonly HorizonDbPools _horizonDbPoolsRestClient; + private readonly HorizonDbPoolData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools"; + + /// Initializes a new instance of HorizonDbPoolResource for mocking. + protected HorizonDbPoolResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbPoolResource(ArmClient client, HorizonDbPoolData 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 HorizonDbPoolResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbPoolApiVersion); + _horizonDbPoolsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); + _horizonDbPoolsRestClient = new HorizonDbPools(_horizonDbPoolsClientDiagnostics, Pipeline, Endpoint, horizonDbPoolApiVersion ?? "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 HorizonDbPoolData 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. + /// The poolName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}"; + 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), id); + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_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 = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}. + /// + /// + /// Operation Id. + /// HorizonDbPools_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbPoolsClientDiagnostics.CreateScope("HorizonDbPoolResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPoolsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPoolData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a collection of HorizonDbReplicas in the . + /// An object representing collection of HorizonDbReplicas and their operations over a HorizonDbReplicaResource. + public virtual HorizonDbReplicaCollection GetHorizonDbReplicas() + { + return GetCachedClient(client => new HorizonDbReplicaCollection(client, Id)); + } + + /// Gets information about a HorizonDb replica. + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbReplicaAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + return await GetHorizonDbReplicas().GetAsync(replicaName, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about a HorizonDb replica. + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbReplica(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + return GetHorizonDbReplicas().Get(replicaName, cancellationToken); + } + + /// Gets a collection of HorizonDbFirewallRules in the . + /// An object representing collection of HorizonDbFirewallRules and their operations over a HorizonDbFirewallRuleResource. + public virtual HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() + { + return GetCachedClient(client => new HorizonDbFirewallRuleCollection(client, Id)); + } + + /// Gets information about a HorizonDb firewall rule. + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + return await GetHorizonDbFirewallRules().GetAsync(firewallRuleName, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about a HorizonDb firewall rule. + /// The name of the HorizonDb firewall rule. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHorizonDbFirewallRule(string firewallRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(firewallRuleName, nameof(firewallRuleName)); + + return GetHorizonDbFirewallRules().Get(firewallRuleName, cancellationToken); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..2b7a55967168 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.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 HorizonDbPrivateLinkResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPrivateLinkResourceData(); + + /// 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. + HorizonDbPrivateLinkResourceData 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. + HorizonDbPrivateLinkResourceData 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/HorizonDbPrivateLinkResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs new file mode 100644 index 000000000000..600d92cfb4c3 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResource.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + /// A class representing a HorizonDbPrivateLinkResource 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 GetHorizonDbPrivateLinkResources method. + /// + public partial class HorizonDbPrivateLinkResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbPrivateLinkResourcesClientDiagnostics; + private readonly HorizonDbPrivateLinkResources _horizonDbPrivateLinkResourcesRestClient; + private readonly HorizonDbPrivateLinkResourceData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/privateLinkResources"; + + /// Initializes a new instance of HorizonDbPrivateLinkResource for mocking. + protected HorizonDbPrivateLinkResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbPrivateLinkResource(ArmClient client, HorizonDbPrivateLinkResourceData 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 HorizonDbPrivateLinkResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbPrivateLinkResourceApiVersion); + _horizonDbPrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); + _horizonDbPrivateLinkResourcesRestClient = new HorizonDbPrivateLinkResources(_horizonDbPrivateLinkResourcesClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateLinkResourceApiVersion ?? "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 HorizonDbPrivateLinkResourceData 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. + /// The groupName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}"; + 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), id); + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_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 = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs new file mode 100644 index 000000000000..42b3d1845d80 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceCollection.cs @@ -0,0 +1,463 @@ +// 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; + +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 GetHorizonDbPrivateLinkResources method from an instance of . + /// + public partial class HorizonDbPrivateLinkResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbPrivateLinkResourcesClientDiagnostics; + private readonly HorizonDbPrivateLinkResources _horizonDbPrivateLinkResourcesRestClient; + + /// Initializes a new instance of HorizonDbPrivateLinkResourceCollection for mocking. + protected HorizonDbPrivateLinkResourceCollection() + { + } + + /// 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 HorizonDbPrivateLinkResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbPrivateLinkResource.ResourceType, out string horizonDbPrivateLinkResourceApiVersion); + _horizonDbPrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", HorizonDbPrivateLinkResource.ResourceType.Namespace, Diagnostics); + _horizonDbPrivateLinkResourcesRestClient = new HorizonDbPrivateLinkResources(_horizonDbPrivateLinkResourcesClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateLinkResourceApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbClusterResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private link resource. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists private link resources in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_List. + /// + /// + /// 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 HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT(_horizonDbPrivateLinkResourcesRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateLinkResource(Client, data)); + } + + /// + /// Lists private link resources in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_List. + /// + /// + /// 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 HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT(_horizonDbPrivateLinkResourcesRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateLinkResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)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}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)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}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(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}/privateLinkResources/{groupName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateLinkResources_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the private link resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string groupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + + using DiagnosticScope scope = _horizonDbPrivateLinkResourcesClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateLinkResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, groupName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbPrivateLinkResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbPrivateLinkResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbPrivateLinkResource(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/HorizonDbPrivateLinkResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs new file mode 100644 index 000000000000..9095d034a335 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.Serialization.cs @@ -0,0 +1,184 @@ +// 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 private link resource. + public partial class HorizonDbPrivateLinkResourceData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbPrivateLinkResourceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceData)} 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(HorizonDbPrivateLinkResourceData)} 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. + HorizonDbPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPrivateLinkResourceData)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPrivateLinkResourceData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPrivateLinkResourceData(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(HorizonDbPrivateLinkResourceData)} 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. + HorizonDbPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPrivateLinkResourceData)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(HorizonDbPrivateLinkResourceData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateLinkResourceData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateLinkResourceData DeserializeHorizonDbPrivateLinkResourceData(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(); + HorizonDBPrivateLinkResourceProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDBPrivateLinkResourceProperties.DeserializeHorizonDBPrivateLinkResourceProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateLinkResourceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs new file mode 100644 index 000000000000..a0f5745c85d9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateLinkResourceData.cs @@ -0,0 +1,43 @@ +// 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 private link resource. + public partial class HorizonDbPrivateLinkResourceData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPrivateLinkResourceData() + { + } + + /// 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. + /// The resource-specific properties for this resource. + internal HorizonDbPrivateLinkResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDBPrivateLinkResourceProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDBPrivateLinkResourceProperties Properties { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs new file mode 100644 index 000000000000..508afd262e65 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaCollection.cs @@ -0,0 +1,591 @@ +// 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; + +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 GetHorizonDbReplicas method from an instance of . + /// + public partial class HorizonDbReplicaCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbReplicasClientDiagnostics; + private readonly HorizonDbReplicas _horizonDbReplicasRestClient; + + /// Initializes a new instance of HorizonDbReplicaCollection for mocking. + protected HorizonDbReplicaCollection() + { + } + + /// 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 HorizonDbReplicaCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(HorizonDbReplicaResource.ResourceType, out string horizonDbReplicaApiVersion); + _horizonDbReplicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", HorizonDbReplicaResource.ResourceType.Namespace, Diagnostics); + _horizonDbReplicasRestClient = new HorizonDbReplicas(_horizonDbReplicasClientDiagnostics, Pipeline, Endpoint, horizonDbReplicaApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbPoolResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbPoolResource.ResourceType), id); + } + } + + /// + /// Creates a new HorizonDb replica or updates an existing replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 replica. + /// 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 replicaName, HorizonDbReplicaData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, HorizonDbReplicaData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica or updates an existing replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 replica. + /// 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 replicaName, HorizonDbReplicaData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, HorizonDbReplicaData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all HorizonDb replicas in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_List. + /// + /// + /// 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 HorizonDbReplicasGetAllAsyncCollectionResultOfT( + _horizonDbReplicasRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbReplicaResource(Client, data)); + } + + /// + /// Lists all HorizonDb replicas in a pool. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_List. + /// + /// + /// 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 HorizonDbReplicasGetAllCollectionResultOfT( + _horizonDbReplicasRestClient, + Guid.Parse(Id.SubscriptionId), + Id.ResourceGroupName, + Id.Parent.Name, + Id.Name, + context), data => new HorizonDbReplicaResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)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}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)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}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(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}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// The name of the HorizonDb replica. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string replicaName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(replicaName, nameof(replicaName)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, replicaName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((HorizonDbReplicaData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(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/HorizonDbReplicaData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs new file mode 100644 index 000000000000..faee0356f579 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.Serialization.cs @@ -0,0 +1,194 @@ +// 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 replica. + public partial class HorizonDbReplicaData : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDbReplicaData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaData)} 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(HorizonDbReplicaData)} 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. + HorizonDbReplicaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbReplicaData)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(HorizonDbReplicaData horizonDbReplicaData) + { + if (horizonDbReplicaData == null) + { + return null; + } + return RequestContent.Create(horizonDbReplicaData, ModelSerializationExtensions.WireOptions); + } + + /// The to deserialize the from. + internal static HorizonDbReplicaData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbReplicaData(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(HorizonDbReplicaData)} 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. + HorizonDbReplicaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbReplicaData)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(HorizonDbReplicaData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaData DeserializeHorizonDbReplicaData(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(); + HorizonDbReplicaProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbReplicaProperties.DeserializeHorizonDbReplicaProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs new file mode 100644 index 000000000000..f392238a7bfe --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaData.cs @@ -0,0 +1,43 @@ +// 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 replica. + public partial class HorizonDbReplicaData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaData() + { + } + + /// 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. + /// The resource-specific properties for this resource. + internal HorizonDbReplicaData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbReplicaProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + public HorizonDbReplicaProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.Serialization.cs new file mode 100644 index 000000000000..1e1135ed2fb5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.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 HorizonDbReplicaResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbReplicaData(); + + /// 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. + HorizonDbReplicaData 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. + HorizonDbReplicaData 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/HorizonDbReplicaResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs new file mode 100644 index 000000000000..3b7740287f7b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbReplicaResource.cs @@ -0,0 +1,408 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +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; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + /// A class representing a HorizonDbReplica 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 GetHorizonDbReplicas method. + /// + public partial class HorizonDbReplicaResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbReplicasClientDiagnostics; + private readonly HorizonDbReplicas _horizonDbReplicasRestClient; + private readonly HorizonDbReplicaData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/pools/replicas"; + + /// Initializes a new instance of HorizonDbReplicaResource for mocking. + protected HorizonDbReplicaResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal HorizonDbReplicaResource(ArmClient client, HorizonDbReplicaData 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 HorizonDbReplicaResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string horizonDbReplicaApiVersion); + _horizonDbReplicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); + _horizonDbReplicasRestClient = new HorizonDbReplicas(_horizonDbReplicasClientDiagnostics, Pipeline, Endpoint, horizonDbReplicaApiVersion ?? "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 HorizonDbReplicaData 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. + /// The poolName. + /// The replicaName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}"; + 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), id); + } + } + + /// + /// Gets information about a HorizonDb replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets information about a HorizonDb replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(HorizonDbReplicaData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new HorizonDbReplicaResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates an existing HorizonDb replica (e.g., role). + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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, HorizonDbReplicaPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbReplicaPatch.ToRequestContent(patch), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica (e.g., role). + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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, HorizonDbReplicaPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, HorizonDbReplicaPatch.ToRequestContent(patch), context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation( + new HorizonDbReplicaOperationSource(Client), + _horizonDbReplicasClientDiagnostics, + 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 replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + HorizonDBArmOperation operation = new HorizonDBArmOperation(_horizonDbReplicasClientDiagnostics, 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 replica. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}. + /// + /// + /// Operation Id. + /// HorizonDbReplicas_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 = _horizonDbReplicasClientDiagnostics.CreateScope("HorizonDbReplicaResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbReplicasRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + HorizonDBArmOperation operation = new HorizonDBArmOperation(_horizonDbReplicasClientDiagnostics, 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/Internal/Argument.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs new file mode 100644 index 000000000000..dcb904429547 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Argument.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class Argument + { + /// The value. + /// The name. + public static void AssertNotNull(T value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + } + + /// The value. + /// The name. + public static void AssertNotNull(T? value, string name) + where T : struct + { + if (!value.HasValue) + { + throw new ArgumentNullException(name); + } + } + + /// The value. + /// The name. + public static void AssertNotNullOrEmpty(IEnumerable value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value is ICollection collectionOfT && collectionOfT.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + if (value is ICollection collection && collection.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + using IEnumerator e = value.GetEnumerator(); + if (!e.MoveNext()) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + } + + /// The value. + /// The name. + public static void AssertNotNullOrEmpty(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value.Length == 0) + { + throw new ArgumentException("Value cannot be an empty string.", name); + } + } + + /// The value. + /// The name. + public static void AssertNotNullOrWhiteSpace(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (string.IsNullOrWhiteSpace(value)) + { + throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); + } + } + + /// The value. + /// The minimum value. + /// The maximum value. + /// The name. + public static void AssertInRange(T value, T minimum, T maximum, string name) + where T : notnull, IComparable + { + if (minimum.CompareTo(value) > 0) + { + throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); + } + if (maximum.CompareTo(value) < 0) + { + throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); + } + } + + /// The value. + /// The name. + public static string CheckNotNullOrEmpty(string value, string name) + { + AssertNotNullOrEmpty(value, name); + return value; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs new file mode 100644 index 000000000000..3fd04b41a18e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/AsyncPageableWrapper.cs @@ -0,0 +1,48 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class AsyncPageableWrapper : AsyncPageable + { + /// The source async pageable value of type AsyncPageable<T>. + private AsyncPageable _source; + /// The converter function from T to U. + private Func _converter; + + /// Initializes a new instance of the AsyncPageableWrapper class. + /// The source async pageable value of type AsyncPageable<T>. + /// The converter function from T to U. + public AsyncPageableWrapper(AsyncPageable source, Func converter) + { + _source = source; + _converter = converter; + } + + /// Converts the pages from AsyncPageable to Page. + /// A continuation token from a previous response. + /// An optional hint to specify the desired size of each page. + /// An enumerable of pages containing converted items of type U. + public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) + { + await foreach (Page page in _source.AsPages(continuationToken, pageSizeHint).ConfigureAwait(false)) + { + List convertedItems = new List(); + foreach (T item in page.Values) + { + convertedItems.Add(_converter.Invoke(item)); + } + yield return Page.FromValues(convertedItems, page.ContinuationToken, page.GetRawResponse()); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs new file mode 100644 index 000000000000..35d010d26bf9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingDictionary.cs @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary + where TKey : notnull + { + private IDictionary _innerDictionary; + + public ChangeTrackingDictionary() + { + } + + /// The inner dictionary. + public ChangeTrackingDictionary(IDictionary dictionary) + { + if (dictionary == null) + { + return; + } + _innerDictionary = new Dictionary(dictionary); + } + + /// The inner dictionary. + public ChangeTrackingDictionary(IReadOnlyDictionary dictionary) + { + if (dictionary == null) + { + return; + } + _innerDictionary = new Dictionary(); + foreach (var pair in dictionary) + { + _innerDictionary.Add(pair); + } + } + + /// Gets the IsUndefined. + public bool IsUndefined => _innerDictionary == null; + + /// Gets the Count. + public int Count => IsUndefined ? 0 : EnsureDictionary().Count; + + /// Gets the IsReadOnly. + public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly; + + /// Gets the Keys. + public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys; + + /// Gets the Values. + public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values; + + /// Gets or sets the value associated with the specified key. + public TValue this[TKey key] + { + get + { + if (IsUndefined) + { + throw new KeyNotFoundException(nameof(key)); + } + return EnsureDictionary()[key]; + } + set + { + EnsureDictionary()[key] = value; + } + } + + /// Gets the Keys. + IEnumerable IReadOnlyDictionary.Keys => Keys; + + /// Gets the Values. + IEnumerable IReadOnlyDictionary.Values => Values; + + public IEnumerator> GetEnumerator() + { + if (IsUndefined) + { + IEnumerator> enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureDictionary().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + /// The item to add. + public void Add(KeyValuePair item) + { + EnsureDictionary().Add(item); + } + + public void Clear() + { + EnsureDictionary().Clear(); + } + + /// The item to search for. + public bool Contains(KeyValuePair item) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Contains(item); + } + + /// The array to copy. + /// The index. + public void CopyTo(KeyValuePair[] array, int index) + { + if (IsUndefined) + { + return; + } + EnsureDictionary().CopyTo(array, index); + } + + /// The item to remove. + public bool Remove(KeyValuePair item) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Remove(item); + } + + /// The key. + /// The value to add. + public void Add(TKey key, TValue value) + { + EnsureDictionary().Add(key, value); + } + + /// The key to search for. + public bool ContainsKey(TKey key) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().ContainsKey(key); + } + + /// The key. + public bool Remove(TKey key) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Remove(key); + } + + /// The key to search for. + /// The value. + public bool TryGetValue(TKey key, out TValue value) + { + if (IsUndefined) + { + value = default; + return false; + } + return EnsureDictionary().TryGetValue(key, out value); + } + + public IDictionary EnsureDictionary() + { + return _innerDictionary ??= new Dictionary(); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 000000000000..b877046d4e74 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + /// The inner list. + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + /// The inner list. + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + /// Gets the IsUndefined. + public bool IsUndefined => _innerList == null; + + /// Gets the Count. + public int Count => IsUndefined ? 0 : EnsureList().Count; + + /// Gets the IsReadOnly. + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + /// Gets or sets the value associated with the specified key. + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + /// The item to add. + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + /// The item. + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + /// The array to copy to. + /// The array index. + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + /// The item. + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + /// The item. + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + /// The inner list. + /// The item. + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + /// The inner list. + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs new file mode 100644 index 000000000000..8757232cdb70 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ClientPipelineExtensions.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class ClientPipelineExtensions + { + public static async ValueTask ProcessMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + (CancellationToken userCancellationToken, ErrorOptions errorOptions) = context.Parse(); + await pipeline.SendAsync(message, userCancellationToken).ConfigureAwait(false); + + if (message.Response.IsError && (errorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) + { + throw new RequestFailedException(message.Response); + } + + return message.Response; + } + + public static Response ProcessMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + (CancellationToken userCancellationToken, ErrorOptions errorOptions) = context.Parse(); + pipeline.Send(message, userCancellationToken); + + if (message.Response.IsError && (errorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) + { + throw new RequestFailedException(message.Response); + } + + return message.Response; + } + + public static async ValueTask> ProcessHeadAsBoolMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + Response response = await pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + switch (response.Status) + { + case >= 200 and < 300: + return Response.FromValue(true, response); + case >= 400 and < 500: + return Response.FromValue(false, response); + default: + return new ErrorResult(response, new RequestFailedException(response)); + } + } + + public static Response ProcessHeadAsBoolMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + Response response = pipeline.ProcessMessage(message, context); + switch (response.Status) + { + case >= 200 and < 300: + return Response.FromValue(true, response); + case >= 400 and < 500: + return Response.FromValue(false, response); + default: + return new ErrorResult(response, new RequestFailedException(response)); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs new file mode 100644 index 000000000000..72778edeb7e4 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenMemberAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Property | AttributeTargets.Field))] + internal partial class CodeGenMemberAttribute : CodeGenTypeAttribute + { + /// The original name of the member. + public CodeGenMemberAttribute(string originalName) : base(originalName) + { + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs new file mode 100644 index 000000000000..dfcabf517497 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSerializationAttribute.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct), AllowMultiple = true, Inherited = true)] + internal partial class CodeGenSerializationAttribute : Attribute + { + /// The property name which these hooks apply to. + public CodeGenSerializationAttribute(string propertyName) + { + PropertyName = propertyName; + } + + /// The property name which these hooks apply to. + /// The serialization name of the property. + public CodeGenSerializationAttribute(string propertyName, string serializationName) + { + PropertyName = propertyName; + SerializationName = serializationName; + } + + /// Gets or sets the property name which these hooks should apply to. + public string PropertyName { get; } + + /// Gets or sets the serialization name of the property. + public string SerializationName { get; set; } + + /// + /// Gets or sets the method name to use when serializing the property value (property name excluded). + /// The signature of the serialization hook method must be or compatible with when invoking: private void SerializeHook(Utf8JsonWriter writer); + /// + public string SerializationValueHook { get; set; } + + /// + /// Gets or sets the method name to use when deserializing the property value from the JSON. + /// private static void DeserializationHook(JsonProperty property, ref TypeOfTheProperty propertyValue); // if the property is required + /// private static void DeserializationHook(JsonProperty property, ref Optional<TypeOfTheProperty> propertyValue); // if the property is optional + /// + public string DeserializationValueHook { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs new file mode 100644 index 000000000000..38d536e69173 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenSuppressAttribute.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct), AllowMultiple = true)] + internal partial class CodeGenSuppressAttribute : Attribute + { + /// The member to suppress. + /// The types of the parameters of the member. + public CodeGenSuppressAttribute(string member, params Type[] parameters) + { + Member = member; + Parameters = parameters; + } + + /// Gets the Member. + public string Member { get; } + + /// Gets the Parameters. + public Type[] Parameters { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs new file mode 100644 index 000000000000..f36b5f513173 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/CodeGenTypeAttribute.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Microsoft.TypeSpec.Generator.Customizations +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct))] + internal partial class CodeGenTypeAttribute : Attribute + { + /// The original name of the type. + public CodeGenTypeAttribute(string originalName) + { + OriginalName = originalName; + } + + /// Gets the OriginalName. + public string OriginalName { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs new file mode 100644 index 000000000000..b5ecc61cc86a --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ErrorResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class ErrorResult : Response + { + private readonly Response _response; + private readonly RequestFailedException _exception; + + public ErrorResult(Response response, RequestFailedException exception) + { + _response = response; + _exception = exception; + } + + /// Gets the Value. + public override T Value => throw _exception; + + /// + public override Response GetRawResponse() + { + return _response; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs new file mode 100644 index 000000000000..d537f0bb117f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/ModelSerializationExtensions.cs @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Runtime.InteropServices; +using System.Text.Json; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class ModelSerializationExtensions + { + internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); + internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions + { + MaxDepth = 256 + }; + + public static object GetObject(this JsonElement element) + { + switch (element.ValueKind) + { + case JsonValueKind.String: + return element.GetString(); + case JsonValueKind.Number: + if (element.TryGetInt32(out int intValue)) + { + return intValue; + } + if (element.TryGetInt64(out long longValue)) + { + return longValue; + } + return element.GetDouble(); + case JsonValueKind.True: + return true; + case JsonValueKind.False: + return false; + case JsonValueKind.Undefined: + case JsonValueKind.Null: + return null; + case JsonValueKind.Object: + Dictionary dictionary = new Dictionary(); + foreach (var jsonProperty in element.EnumerateObject()) + { + dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); + } + return dictionary; + case JsonValueKind.Array: + List list = new List(); + foreach (var item in element.EnumerateArray()) + { + list.Add(item.GetObject()); + } + return list.ToArray(); + default: + throw new NotSupportedException($"Not supported value kind {element.ValueKind}"); + } + } + + public static byte[] GetBytesFromBase64(this JsonElement element, string format) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + + return format switch + { + "U" => TypeFormatters.FromBase64UrlString(element.GetRequiredString()), + "D" => element.GetBytesFromBase64(), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + } + + public static DateTimeOffset GetDateTimeOffset(this JsonElement element, string format) => format switch + { + "U" when element.ValueKind == JsonValueKind.Number => DateTimeOffset.FromUnixTimeSeconds(element.GetInt64()), + _ => TypeFormatters.ParseDateTimeOffset(element.GetString(), format) + }; + + public static TimeSpan GetTimeSpan(this JsonElement element, string format) => TypeFormatters.ParseTimeSpan(element.GetString(), format); + + public static char GetChar(this JsonElement element) + { + if (element.ValueKind == JsonValueKind.String) + { + string text = element.GetString(); + if (text == null || text.Length != 1) + { + throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); + } + return text[0]; + } + else + { + throw new NotSupportedException($"Cannot convert {element.ValueKind} to a char"); + } + } + + [Conditional("DEBUG")] + public static void ThrowNonNullablePropertyIsNull(this JsonProperty @property) + { + throw new JsonException($"A property '{@property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); + } + + public static string GetRequiredString(this JsonElement element) + { + string value = element.GetString(); + if (value == null) + { + throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); + } + return value; + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTime value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, TimeSpan value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, char value) + { + writer.WriteStringValue(value.ToString(CultureInfo.InvariantCulture)); + } + + public static void WriteBase64StringValue(this Utf8JsonWriter writer, byte[] value, string format) + { + if (value == null) + { + writer.WriteNullValue(); + return; + } + switch (format) + { + case "U": + writer.WriteStringValue(TypeFormatters.ToBase64UrlString(value)); + break; + case "D": + writer.WriteBase64StringValue(value); + break; + default: + throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)); + } + } + + public static void WriteNumberValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + if (format != "U") + { + throw new ArgumentOutOfRangeException(nameof(format), "Only 'U' format is supported when writing a DateTimeOffset as a Number."); + } + writer.WriteNumberValue(value.ToUnixTimeSeconds()); + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, T value, ModelReaderWriterOptions options = null) + { + switch (value) + { + case null: + writer.WriteNullValue(); + break; + case IJsonModel jsonModel: + jsonModel.Write(writer, options ?? WireOptions); + break; + case byte[] bytes: + writer.WriteBase64StringValue(bytes); + break; + case BinaryData bytes0: + writer.WriteBase64StringValue(bytes0); + break; + case JsonElement json: + json.WriteTo(writer); + break; + case int i: + writer.WriteNumberValue(i); + break; + case decimal d: + writer.WriteNumberValue(d); + break; + case double d0: + if (double.IsNaN(d0)) + { + writer.WriteStringValue("NaN"); + } + else + { + writer.WriteNumberValue(d0); + } + break; + case float f: + writer.WriteNumberValue(f); + break; + case long l: + writer.WriteNumberValue(l); + break; + case string s: + writer.WriteStringValue(s); + break; + case bool b: + writer.WriteBooleanValue(b); + break; + case Guid g: + writer.WriteStringValue(g); + break; + case DateTimeOffset dateTimeOffset: + writer.WriteStringValue(dateTimeOffset, "O"); + break; + case DateTime dateTime: + writer.WriteStringValue(dateTime, "O"); + break; + case IEnumerable> enumerable: + writer.WriteStartObject(); + foreach (var pair in enumerable) + { + writer.WritePropertyName(pair.Key); + writer.WriteObjectValue(pair.Value, options); + } + writer.WriteEndObject(); + break; + case IEnumerable objectEnumerable: + writer.WriteStartArray(); + foreach (var item in objectEnumerable) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + break; + case TimeSpan timeSpan: + writer.WriteStringValue(timeSpan, "P"); + break; + default: + throw new NotSupportedException($"Not supported type {value.GetType()}"); + } + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, object value, ModelReaderWriterOptions options = null) + { + writer.WriteObjectValue(value, options); + } + + public static BinaryData GetUtf8Bytes(this JsonElement element) + { +#if NET9_0_OR_GREATER + return new global::System.BinaryData(global::System.Runtime.InteropServices.JsonMarshal.GetRawUtf8Value(element).ToArray()); +#else + return BinaryData.FromString(element.GetRawText()); +#endif + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs new file mode 100644 index 000000000000..5380a7426166 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/Optional.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class Optional + { + public static bool IsCollectionDefined(IEnumerable collection) + { + return !(collection is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined); + } + + public static bool IsCollectionDefined(IDictionary collection) + { + return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); + } + + public static bool IsCollectionDefined(IReadOnlyDictionary collection) + { + return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); + } + + public static bool IsDefined(T? value) + where T : struct + { + return value.HasValue; + } + + public static bool IsDefined(object value) + { + return value != null; + } + + public static bool IsDefined(string value) + { + return value != null; + } + + public static bool IsDefined(JsonElement value) + { + return value.ValueKind != JsonValueKind.Undefined; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs new file mode 100644 index 000000000000..def390c4c343 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/PageableWrapper.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class PageableWrapper : Pageable + { + /// The source pageable value of type Pageable<T>. + private Pageable _source; + /// The converter function from T to U. + private Func _converter; + + /// Initializes a new instance of the PageableWrapper class. + /// The source pageable value of type Pageable<T>. + /// The converter function from T to U. + public PageableWrapper(Pageable source, Func converter) + { + _source = source; + _converter = converter; + } + + /// Converts the pages from Pageable to Page. + /// A continuation token from a previous response. + /// An optional hint to specify the desired size of each page. + /// An enumerable of pages containing converted items of type U. + public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) + { + foreach (Page page in _source.AsPages(continuationToken, pageSizeHint)) + { + List convertedItems = new List(); + foreach (T item in page.Values) + { + convertedItems.Add(_converter.Invoke(item)); + } + yield return Page.FromValues(convertedItems, page.ContinuationToken, page.GetRawResponse()); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs new file mode 100644 index 000000000000..296fbf238f52 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RawRequestUriBuilderExtensions.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class RawRequestUriBuilderExtensions + { + public static void AppendQueryDelimited(this RawRequestUriBuilder builder, string name, IEnumerable value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true) + { + delimiter ??= ","; + IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format)); + builder.AppendQuery(name, string.Join(delimiter, stringValues), escape); + } + + public static void UpdateQuery(this RawRequestUriBuilder builder, string name, string value) + { + string currentQuery = builder.Query; + string searchPattern = string.Concat(name, "="); + int paramStartIndex = -1; + if (currentQuery.StartsWith(string.Concat("?", searchPattern))) + { + paramStartIndex = 1; + } + if (paramStartIndex == -1) + { + string prefixedPattern = string.Concat("&", searchPattern); + int prefixedIndex = currentQuery.IndexOf(prefixedPattern); + if (prefixedIndex >= 0) + { + paramStartIndex = prefixedIndex + 1; + } + } + if (paramStartIndex >= 0) + { + int valueStartIndex = paramStartIndex + searchPattern.Length; + int valueEndIndex = currentQuery.IndexOf('&', valueStartIndex); + if (valueEndIndex == -1) + { + valueEndIndex = currentQuery.Length; + } + string beforeParam = currentQuery.Substring(0, valueStartIndex); + string afterParam = currentQuery.Substring(valueEndIndex); + string newQuery = string.Concat(beforeParam, value, afterParam); + builder.Query = newQuery; + } + else + { + builder.AppendQuery(name, value, true); + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs new file mode 100644 index 000000000000..f47cdec95ebc --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/RequestContextExtensions.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using Azure; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class RequestContextExtensions + { + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + public static ValueTuple Parse(this RequestContext context) + { + if (context == null) + { + return (CancellationToken.None, ErrorOptions.Default); + } + return (context.CancellationToken, context.ErrorOptions); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs new file mode 100644 index 000000000000..b1b700b52b58 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/SerializationFormat.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.HorizonDB +{ + internal enum SerializationFormat + { + /// The default serialization format. + Default = 0, + /// The RFC1123 date time format. + DateTime_RFC1123 = 1, + /// The RFC3339 date time format. + DateTime_RFC3339 = 2, + /// The RFC7231 date time format. + DateTime_RFC7231 = 3, + /// The ISO8601 date time format. + DateTime_ISO8601 = 4, + /// The Unix date time format. + DateTime_Unix = 5, + /// The ISO8601 date format. + Date_ISO8601 = 6, + /// The ISO8601 duration format. + Duration_ISO8601 = 7, + /// The constant duration format. + Duration_Constant = 8, + /// The seconds duration format. + Duration_Seconds = 9, + /// The seconds duration format with float precision. + Duration_Seconds_Float = 10, + /// The seconds duration format with double precision. + Duration_Seconds_Double = 11, + /// The milliseconds duration format. + Duration_Milliseconds = 12, + /// The milliseconds duration format with float precision. + Duration_Milliseconds_Float = 13, + /// The milliseconds duration format with double precision. + Duration_Milliseconds_Double = 14, + /// The ISO8601 time format. + Time_ISO8601 = 15, + /// The Base64Url bytes format. + Bytes_Base64Url = 16, + /// The Base64 bytes format. + Bytes_Base64 = 17 + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs new file mode 100644 index 000000000000..771bf30968e0 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Internal/TypeFormatters.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Xml; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class TypeFormatters + { + private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; + public const string DefaultNumberFormat = "G"; + + public static string ToString(bool value) => value ? "true" : "false"; + + public static string ToString(DateTime value, string format) => value.Kind switch + { + DateTimeKind.Utc => ToString((DateTimeOffset)value, format), + _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Generated clients require it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") + }; + + public static string ToString(DateTimeOffset value, string format) => format switch + { + "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), + "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), + "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "R" => value.ToString("r", CultureInfo.InvariantCulture), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(TimeSpan value, string format) => format switch + { + "P" => XmlConvert.ToString(value), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(byte[] value, string format) => format switch + { + "U" => ToBase64UrlString(value), + "D" => Convert.ToBase64String(value), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + + public static string ToBase64UrlString(byte[] value) + { + int numWholeOrPartialInputBlocks = checked (value.Length + 2) / 3; + int size = checked (numWholeOrPartialInputBlocks * 4); + char[] output = new char[size]; + + int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); + + int i = 0; + for (; i < numBase64Chars; i++) + { + char ch = output[i]; + if (ch == '+') + { + output[i] = '-'; + } + else + { + if (ch == '/') + { + output[i] = '_'; + } + else + { + if (ch == '=') + { + break; + } + } + } + } + + return new string(output, 0, i); + } + + public static byte[] FromBase64UrlString(string value) + { + int paddingCharsToAdd = (value.Length % 4) switch + { + 0 => 0, + 2 => 2, + 3 => 1, + _ => throw new InvalidOperationException("Malformed input") + }; + char[] output = new char[(value.Length + paddingCharsToAdd)]; + int i = 0; + for (; i < value.Length; i++) + { + char ch = value[i]; + if (ch == '-') + { + output[i] = '+'; + } + else + { + if (ch == '_') + { + output[i] = '/'; + } + else + { + output[i] = ch; + } + } + } + + for (; i < output.Length; i++) + { + output[i] = '='; + } + + return Convert.FromBase64CharArray(output, 0, output.Length); + } + + public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch + { + "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), + _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) + }; + + public static TimeSpan ParseTimeSpan(string value, string format) => format switch + { + "P" => XmlConvert.ToTimeSpan(value), + _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) + }; + + public static string ToFormatSpecifier(SerializationFormat format) => format switch + { + SerializationFormat.DateTime_RFC1123 => "R", + SerializationFormat.DateTime_RFC3339 => "O", + SerializationFormat.DateTime_RFC7231 => "R", + SerializationFormat.DateTime_ISO8601 => "O", + SerializationFormat.Date_ISO8601 => "D", + SerializationFormat.DateTime_Unix => "U", + SerializationFormat.Bytes_Base64Url => "U", + SerializationFormat.Bytes_Base64 => "D", + SerializationFormat.Duration_ISO8601 => "P", + SerializationFormat.Duration_Constant => "c", + SerializationFormat.Duration_Seconds => "%s", + SerializationFormat.Duration_Seconds_Float => "s\\.FFF", + SerializationFormat.Duration_Seconds_Double => "s\\.FFFFFF", + SerializationFormat.Time_ISO8601 => "T", + _ => null + }; + + public static string ConvertToString(object value, SerializationFormat format = SerializationFormat.Default) + { + string formatSpecifier = ToFormatSpecifier(format); + + return value switch + { + null => "null", + string s => s, + bool b => ToString(b), + int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), + byte[] b0 when formatSpecifier != null => ToString(b0, formatSpecifier), + IEnumerable s0 => string.Join(",", s0), + DateTimeOffset dateTime when formatSpecifier != null => ToString(dateTime, formatSpecifier), + TimeSpan timeSpan when format == SerializationFormat.Duration_Seconds => Convert.ToInt32(timeSpan.TotalSeconds).ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan0 when format == SerializationFormat.Duration_Seconds_Float || format == SerializationFormat.Duration_Seconds_Double => timeSpan0.TotalSeconds.ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan1 when format == SerializationFormat.Duration_Milliseconds => Convert.ToInt32(timeSpan1.TotalMilliseconds).ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan2 when format == SerializationFormat.Duration_Milliseconds_Float || format == SerializationFormat.Duration_Milliseconds_Double => timeSpan2.TotalMilliseconds.ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan3 when formatSpecifier != null => ToString(timeSpan3, formatSpecifier), + TimeSpan timeSpan4 => XmlConvert.ToString(timeSpan4), + Guid guid => guid.ToString(), + BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), + _ => value.ToString() + }; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperation.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperation.cs new file mode 100644 index 000000000000..17f62d581562 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperation.cs @@ -0,0 +1,106 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDBArmOperation : ArmOperation + { + private readonly OperationInternal _operation; + private readonly RehydrationToken? _completeRehydrationToken; + private readonly NextLinkOperationImplementation _nextLinkOperation; + private readonly string _operationId; + + /// Initializes a new instance of HorizonDBArmOperation for mocking. + protected HorizonDBArmOperation() + { + } + + /// + /// The operation response. + /// The token to rehydrate the operation. + internal HorizonDBArmOperation(Response response, RehydrationToken? rehydrationToken = null) + { + _operation = OperationInternal.Succeeded(response); + _completeRehydrationToken = rehydrationToken; + _operationId = GetOperationId(rehydrationToken); + } + + /// + /// The instance of . + /// The instance of . + /// The operation request. + /// The operation response. + /// The finalStateVia of the operation. + /// If should skip Api version override. + /// The Api version override value. + internal HorizonDBArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) + { + IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); + if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationImplementation) + { + _nextLinkOperation = nextLinkOperationImplementation; + _operationId = _nextLinkOperation.OperationId; + } + else + { + _completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia); + _operationId = GetOperationId(_completeRehydrationToken); + } + _operation = new OperationInternal( + nextLinkOperation, + clientDiagnostics, + response, + "HorizonDBArmOperation", + null, + new SequentialDelayStrategy()); + } + + /// Gets the Id. + public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet; + + /// Gets the HasCompleted. + public override bool HasCompleted => _operation.HasCompleted; + + /// The token to rehydrate a long-running operation. + private string GetOperationId(RehydrationToken? rehydrationToken) + { + return rehydrationToken?.Id; + } + + /// + public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken; + + /// + public override Response GetRawResponse() => _operation.RawResponse; + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken); + + /// + public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperationOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperationOfT.cs new file mode 100644 index 000000000000..768850c4ee6c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBArmOperationOfT.cs @@ -0,0 +1,113 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDBArmOperation : ArmOperation + { + private readonly OperationInternal _operation; + private readonly RehydrationToken? _completeRehydrationToken; + private readonly NextLinkOperationImplementation _nextLinkOperation; + private readonly string _operationId; + + /// Initializes a new instance of HorizonDBArmOperation for mocking. + protected HorizonDBArmOperation() + { + } + + /// + /// The operation response. + /// The token to rehydrate the operation. + internal HorizonDBArmOperation(Response response, RehydrationToken? rehydrationToken = null) + { + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _completeRehydrationToken = rehydrationToken; + _operationId = GetOperationId(rehydrationToken); + } + + /// + /// The instance of . + /// The instance of . + /// The instance of . + /// The operation request. + /// The operation response. + /// The finalStateVia of the operation. + /// If should skip Api version override. + /// The Api version override value. + internal HorizonDBArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) + { + IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); + if (nextLinkOperation is NextLinkOperationImplementation nextLinkOperationImplementation) + { + _nextLinkOperation = nextLinkOperationImplementation; + _operationId = _nextLinkOperation.OperationId; + } + else + { + _completeRehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia); + _operationId = GetOperationId(_completeRehydrationToken); + } + _operation = new OperationInternal( + NextLinkOperationImplementation.Create(source, nextLinkOperation), + clientDiagnostics, + response, + "HorizonDBArmOperation", + null, + new SequentialDelayStrategy()); + } + + /// Gets the Id. + public override string Id => _operationId ?? NextLinkOperationImplementation.NotSet; + + /// Gets the Value. + public override T Value => _operation.Value; + + /// Gets the HasValue. + public override bool HasValue => _operation.HasValue; + + /// Gets the HasCompleted. + public override bool HasCompleted => _operation.HasCompleted; + + /// The token to rehydrate a long-running operation. + private string GetOperationId(RehydrationToken? rehydrationToken) + { + return rehydrationToken?.Id; + } + + /// + public override RehydrationToken? GetRehydrationToken() => _nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken; + + /// + public override Response GetRawResponse() => _operation.RawResponse; + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken); + + /// + public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBPrivateEndpointConnectionOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBPrivateEndpointConnectionOperationSource.cs new file mode 100644 index 000000000000..dd1cbc543074 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDBPrivateEndpointConnectionOperationSource.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.HorizonDB.Models; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + internal partial class HorizonDBPrivateEndpointConnectionOperationSource : IOperationSource + { + /// + internal HorizonDBPrivateEndpointConnectionOperationSource() + { + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDBPrivateEndpointConnection IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDBPrivateEndpointConnection result = HorizonDBPrivateEndpointConnection.DeserializeHorizonDBPrivateEndpointConnection(document.RootElement, ModelSerializationExtensions.WireOptions); + return result; + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDBPrivateEndpointConnection result = HorizonDBPrivateEndpointConnection.DeserializeHorizonDBPrivateEndpointConnection(document.RootElement, ModelSerializationExtensions.WireOptions); + return result; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs new file mode 100644 index 000000000000..7e1c034ad111 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbClusterOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + internal partial class HorizonDbClusterOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbClusterOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbClusterResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbClusterData data = HorizonDbClusterData.DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbClusterResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbClusterData data = HorizonDbClusterData.DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbClusterResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs new file mode 100644 index 000000000000..fd6e0f437394 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbFirewallRuleOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + internal partial class HorizonDbFirewallRuleOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbFirewallRuleOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbFirewallRuleResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbFirewallRuleData data = HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbFirewallRuleResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbFirewallRuleData data = HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbFirewallRuleResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs new file mode 100644 index 000000000000..e69aaf0d3b61 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbParameterGroupOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + internal partial class HorizonDbParameterGroupOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbParameterGroupOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbParameterGroupResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbParameterGroupData data = HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbParameterGroupResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbParameterGroupData data = HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbParameterGroupResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs new file mode 100644 index 000000000000..a844e58cf41f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/LongRunningOperation/HorizonDbReplicaOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + internal partial class HorizonDbReplicaOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal HorizonDbReplicaOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + HorizonDbReplicaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + HorizonDbReplicaData data = HorizonDbReplicaData.DeserializeHorizonDbReplicaData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbReplicaResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + HorizonDbReplicaData data = HorizonDbReplicaData.DeserializeHorizonDbReplicaData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new HorizonDbReplicaResource(_client, data); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs new file mode 100644 index 000000000000..8b0a51bf5e4f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.ClientModel.Primitives; +using Azure; +using Azure.ResourceManager.HorizonDB.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + /// Context class which will be filled in by the System.ClientModel.SourceGeneration. + /// For more information + /// + [ModelReaderWriterBuildable(typeof(HorizonDbClusterData))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterParameterGroupConnectionProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterPropertiesForPatchUpdate))] + [ModelReaderWriterBuildable(typeof(HorizonDbClusterResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleData))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbFirewallRuleResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupConnectionProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupConnectionPropertiesListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupData))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPropertiesForPatchUpdate))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolData))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbPoolResource))] + [ModelReaderWriterBuildable(typeof(HorizonDBPrivateEndpointConnection))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceData))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDBPrivateLinkResourceProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDBPrivateLinkServiceConnectionState))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaData))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaListResult))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaPropertiesForPatchUpdate))] + [ModelReaderWriterBuildable(typeof(HorizonDbReplicaResource))] + [ModelReaderWriterBuildable(typeof(Network))] + [ModelReaderWriterBuildable(typeof(OptionalPropertiesUpdateableProperties))] + [ModelReaderWriterBuildable(typeof(ParameterProperties))] + [ModelReaderWriterBuildable(typeof(PrivateEndpoint))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionProperties))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResource))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResourceData))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResourceListResult))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionUpdate))] + [ModelReaderWriterBuildable(typeof(ResponseError))] + [ModelReaderWriterBuildable(typeof(SystemData))] + public partial class AzureResourceManagerHorizonDBContext : ModelReaderWriterContext + { + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs new file mode 100644 index 000000000000..dca6108e8d9e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The mode to create a new HorizonDb cluster. + public readonly partial struct CreateModeCluster : IEquatable + { + private readonly string _value; + /// Create a new cluster. + private const string CreateValue = "Create"; + /// Update an existing cluster. + private const string UpdateValue = "Update"; + /// Create cluster from point-in-time restore. + private const string PointInTimeRestoreValue = "PointInTimeRestore"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public CreateModeCluster(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Create a new cluster. + public static CreateModeCluster Create { get; } = new CreateModeCluster(CreateValue); + + /// Update an existing cluster. + public static CreateModeCluster Update { get; } = new CreateModeCluster(UpdateValue); + + /// Create cluster from point-in-time restore. + public static CreateModeCluster PointInTimeRestore { get; } = new CreateModeCluster(PointInTimeRestoreValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(CreateModeCluster left, CreateModeCluster right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(CreateModeCluster left, CreateModeCluster right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModeCluster(string value) => new CreateModeCluster(value); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModeCluster?(string value) => value == null ? null : new CreateModeCluster(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CreateModeCluster other && Equals(other); + + /// + public bool Equals(CreateModeCluster other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs new file mode 100644 index 000000000000..3f40ca9968ff --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The mode to create a new HorizonDb cluster. + public readonly partial struct CreateModePool : IEquatable + { + private readonly string _value; + /// Create a new pool. + private const string CreateValue = "Create"; + /// Update an existing pool. + private const string UpdateValue = "Update"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public CreateModePool(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Create a new pool. + public static CreateModePool Create { get; } = new CreateModePool(CreateValue); + + /// Update an existing pool. + public static CreateModePool Update { get; } = new CreateModePool(UpdateValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(CreateModePool left, CreateModePool right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(CreateModePool left, CreateModePool right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModePool(string value) => new CreateModePool(value); + + /// Converts a string to a . + /// The value. + public static implicit operator CreateModePool?(string value) => value == null ? null : new CreateModePool(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CreateModePool other && Equals(other); + + /// + public bool Equals(CreateModePool other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs new file mode 100644 index 000000000000..77fb46d43620 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs @@ -0,0 +1,184 @@ +// 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; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The private endpoint connection resource. + public partial class HorizonDBPrivateEndpointConnection : ResourceData, IJsonModel + { + /// 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 DeserializeHorizonDBPrivateEndpointConnection(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDBPrivateEndpointConnection)} 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(HorizonDBPrivateEndpointConnection)} 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. + HorizonDBPrivateEndpointConnection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDBPrivateEndpointConnection)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDBPrivateEndpointConnection FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDBPrivateEndpointConnection(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(HorizonDBPrivateEndpointConnection)} 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. + HorizonDBPrivateEndpointConnection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDBPrivateEndpointConnection)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(HorizonDBPrivateEndpointConnection)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDBPrivateEndpointConnection(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDBPrivateEndpointConnection DeserializeHorizonDBPrivateEndpointConnection(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(); + PrivateEndpointConnectionProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDBPrivateEndpointConnection( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs new file mode 100644 index 000000000000..499b21bbb490 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The private endpoint connection resource. + public partial class HorizonDBPrivateEndpointConnection : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDBPrivateEndpointConnection() + { + } + + /// 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. + /// The private endpoint connection properties. + internal HorizonDBPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The private endpoint connection properties. + public PrivateEndpointConnectionProperties Properties { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnectionProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 000000000000..9e79cb572a49 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The current provisioning state. + public readonly partial struct HorizonDBPrivateEndpointConnectionProvisioningState : IEquatable + { + private readonly string _value; + /// Connection has been provisioned. + private const string SucceededValue = "Succeeded"; + /// Connection is being created. + private const string CreatingValue = "Creating"; + /// Connection is being deleted. + private const string DeletingValue = "Deleting"; + /// Connection provisioning has failed. + private const string FailedValue = "Failed"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public HorizonDBPrivateEndpointConnectionProvisioningState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Connection has been provisioned. + public static HorizonDBPrivateEndpointConnectionProvisioningState Succeeded { get; } = new HorizonDBPrivateEndpointConnectionProvisioningState(SucceededValue); + + /// Connection is being created. + public static HorizonDBPrivateEndpointConnectionProvisioningState Creating { get; } = new HorizonDBPrivateEndpointConnectionProvisioningState(CreatingValue); + + /// Connection is being deleted. + public static HorizonDBPrivateEndpointConnectionProvisioningState Deleting { get; } = new HorizonDBPrivateEndpointConnectionProvisioningState(DeletingValue); + + /// Connection provisioning has failed. + public static HorizonDBPrivateEndpointConnectionProvisioningState Failed { get; } = new HorizonDBPrivateEndpointConnectionProvisioningState(FailedValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(HorizonDBPrivateEndpointConnectionProvisioningState left, HorizonDBPrivateEndpointConnectionProvisioningState right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(HorizonDBPrivateEndpointConnectionProvisioningState left, HorizonDBPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDBPrivateEndpointConnectionProvisioningState(string value) => new HorizonDBPrivateEndpointConnectionProvisioningState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDBPrivateEndpointConnectionProvisioningState?(string value) => value == null ? null : new HorizonDBPrivateEndpointConnectionProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HorizonDBPrivateEndpointConnectionProvisioningState other && Equals(other); + + /// + public bool Equals(HorizonDBPrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointServiceConnectionStatus.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..1dd1de49a851 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The private endpoint connection status. + public readonly partial struct HorizonDBPrivateEndpointServiceConnectionStatus : IEquatable + { + private readonly string _value; + /// Connection waiting for approval or rejection. + private const string PendingValue = "Pending"; + /// Connection approved. + private const string ApprovedValue = "Approved"; + /// Connection Rejected. + private const string RejectedValue = "Rejected"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public HorizonDBPrivateEndpointServiceConnectionStatus(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Connection waiting for approval or rejection. + public static HorizonDBPrivateEndpointServiceConnectionStatus Pending { get; } = new HorizonDBPrivateEndpointServiceConnectionStatus(PendingValue); + + /// Connection approved. + public static HorizonDBPrivateEndpointServiceConnectionStatus Approved { get; } = new HorizonDBPrivateEndpointServiceConnectionStatus(ApprovedValue); + + /// Connection Rejected. + public static HorizonDBPrivateEndpointServiceConnectionStatus Rejected { get; } = new HorizonDBPrivateEndpointServiceConnectionStatus(RejectedValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(HorizonDBPrivateEndpointServiceConnectionStatus left, HorizonDBPrivateEndpointServiceConnectionStatus right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(HorizonDBPrivateEndpointServiceConnectionStatus left, HorizonDBPrivateEndpointServiceConnectionStatus right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDBPrivateEndpointServiceConnectionStatus(string value) => new HorizonDBPrivateEndpointServiceConnectionStatus(value); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDBPrivateEndpointServiceConnectionStatus?(string value) => value == null ? null : new HorizonDBPrivateEndpointServiceConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HorizonDBPrivateEndpointServiceConnectionStatus other && Equals(other); + + /// + public bool Equals(HorizonDBPrivateEndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.Serialization.cs new file mode 100644 index 000000000000..35120380b0c7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.Serialization.cs @@ -0,0 +1,215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a private link resource. + public partial class HorizonDBPrivateLinkResourceProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDBPrivateLinkResourceProperties 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 DeserializeHorizonDBPrivateLinkResourceProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDBPrivateLinkResourceProperties)} 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(HorizonDBPrivateLinkResourceProperties)} 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. + HorizonDBPrivateLinkResourceProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDBPrivateLinkResourceProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(GroupId)) + { + writer.WritePropertyName("groupId"u8); + writer.WriteStringValue(GroupId); + } + if (options.Format != "W" && Optional.IsCollectionDefined(RequiredMembers)) + { + writer.WritePropertyName("requiredMembers"u8); + writer.WriteStartArray(); + foreach (string item in RequiredMembers) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(RequiredZoneNames)) + { + writer.WritePropertyName("requiredZoneNames"u8); + writer.WriteStartArray(); + foreach (string item in RequiredZoneNames) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDBPrivateLinkResourceProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDBPrivateLinkResourceProperties 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(HorizonDBPrivateLinkResourceProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDBPrivateLinkResourceProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDBPrivateLinkResourceProperties DeserializeHorizonDBPrivateLinkResourceProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string groupId = default; + IReadOnlyList requiredMembers = default; + IList requiredZoneNames = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("groupId"u8)) + { + groupId = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("requiredMembers"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + requiredMembers = array; + continue; + } + if (prop.NameEquals("requiredZoneNames"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + requiredZoneNames = array; + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDBPrivateLinkResourceProperties(groupId, requiredMembers ?? new ChangeTrackingList(), requiredZoneNames ?? new ChangeTrackingList(), additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.cs new file mode 100644 index 000000000000..11190d820562 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkResourceProperties.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a private link resource. + public partial class HorizonDBPrivateLinkResourceProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDBPrivateLinkResourceProperties() + { + RequiredMembers = new ChangeTrackingList(); + RequiredZoneNames = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource private link DNS zone name. + /// Keeps track of any properties unknown to the library. + internal HorizonDBPrivateLinkResourceProperties(string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames, IDictionary additionalBinaryDataProperties) + { + GroupId = groupId; + RequiredMembers = requiredMembers; + RequiredZoneNames = requiredZoneNames; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The private link resource group id. + public string GroupId { get; } + + /// The private link resource required member names. + public IReadOnlyList RequiredMembers { get; } + + /// The private link resource private link DNS zone name. + public IList RequiredZoneNames { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.Serialization.cs new file mode 100644 index 000000000000..ac0fab2b89dd --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// A collection of information about the state of the connection between service consumer and provider. + public partial class HorizonDBPrivateLinkServiceConnectionState : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDBPrivateLinkServiceConnectionState 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 DeserializeHorizonDBPrivateLinkServiceConnectionState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDBPrivateLinkServiceConnectionState)} 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(HorizonDBPrivateLinkServiceConnectionState)} 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. + HorizonDBPrivateLinkServiceConnectionState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDBPrivateLinkServiceConnectionState)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(ActionsRequired)) + { + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDBPrivateLinkServiceConnectionState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDBPrivateLinkServiceConnectionState 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(HorizonDBPrivateLinkServiceConnectionState)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDBPrivateLinkServiceConnectionState(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDBPrivateLinkServiceConnectionState DeserializeHorizonDBPrivateLinkServiceConnectionState(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + HorizonDBPrivateEndpointServiceConnectionStatus? status = default; + string description = default; + string actionsRequired = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("status"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new HorizonDBPrivateEndpointServiceConnectionStatus(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("actionsRequired"u8)) + { + actionsRequired = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDBPrivateLinkServiceConnectionState(status, description, actionsRequired, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.cs new file mode 100644 index 000000000000..fb231632c9b6 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateLinkServiceConnectionState.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; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// A collection of information about the state of the connection between service consumer and provider. + public partial class HorizonDBPrivateLinkServiceConnectionState + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDBPrivateLinkServiceConnectionState() + { + } + + /// Initializes a new instance of . + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + /// The reason for approval/rejection of the connection. + /// A message indicating if changes on the service provider require any updates on the consumer. + /// Keeps track of any properties unknown to the library. + internal HorizonDBPrivateLinkServiceConnectionState(HorizonDBPrivateEndpointServiceConnectionStatus? status, string description, string actionsRequired, IDictionary additionalBinaryDataProperties) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + public HorizonDBPrivateEndpointServiceConnectionStatus? Status { get; set; } + + /// The reason for approval/rejection of the connection. + public string Description { get; set; } + + /// A message indicating if changes on the service provider require any updates on the consumer. + public string ActionsRequired { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs new file mode 100644 index 000000000000..8c2e6a5a56e8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbCluster list operation. + internal partial class HorizonDbClusterListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbClusterListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterListResult 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 DeserializeHorizonDbClusterListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterListResult)} 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(HorizonDbClusterListResult)} 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. + HorizonDbClusterListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbClusterListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbClusterListResult(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 virtual 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(HorizonDbClusterListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbClusterData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterListResult 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(HorizonDbClusterListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterListResult DeserializeHorizonDbClusterListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbClusterData.DeserializeHorizonDbClusterData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs new file mode 100644 index 000000000000..17624b5c6310 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbCluster list operation. + internal partial class HorizonDbClusterListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbCluster items on this page. + internal HorizonDbClusterListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbCluster items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbCluster items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..168c0bb9fce3 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.Serialization.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbClusterParameterGroupConnectionProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterParameterGroupConnectionProperties 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 DeserializeHorizonDbClusterParameterGroupConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterParameterGroupConnectionProperties)} 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(HorizonDbClusterParameterGroupConnectionProperties)} 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. + HorizonDbClusterParameterGroupConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbClusterParameterGroupConnectionProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W" && Optional.IsDefined(SyncStatus)) + { + writer.WritePropertyName("syncStatus"u8); + writer.WriteStringValue(SyncStatus); + } + if (Optional.IsDefined(ApplyImmediately)) + { + writer.WritePropertyName("applyImmediately"u8); + writer.WriteBooleanValue(ApplyImmediately.Value); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterParameterGroupConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterParameterGroupConnectionProperties 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(HorizonDbClusterParameterGroupConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterParameterGroupConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterParameterGroupConnectionProperties DeserializeHorizonDbClusterParameterGroupConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string syncStatus = default; + bool? applyImmediately = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + 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("syncStatus"u8)) + { + syncStatus = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("applyImmediately"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applyImmediately = prop.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterParameterGroupConnectionProperties(id, syncStatus, applyImmediately, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs new file mode 100644 index 000000000000..584ba81808cd --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterParameterGroupConnectionProperties.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbClusterParameterGroupConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbClusterParameterGroupConnectionProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterParameterGroupConnectionProperties(ResourceIdentifier id, string syncStatus, bool? applyImmediately, IDictionary additionalBinaryDataProperties) + { + Id = id; + SyncStatus = syncStatus; + ApplyImmediately = applyImmediately; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The resource ID of the connected parameter group. + public ResourceIdentifier Id { get; set; } + + /// Indication of if parameter group is applied on HorizonDb resource. + public string SyncStatus { get; } + + /// Indicates whether the parameters should be applied immediately. + public bool? ApplyImmediately { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs new file mode 100644 index 000000000000..67d3677d9519 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.Serialization.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// HorizonDb cluster for update operations. + public partial class HorizonDbClusterPatch : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPatch 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 DeserializeHorizonDbClusterPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterPatch)} 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(HorizonDbClusterPatch)} 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. + HorizonDbClusterPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbClusterPatch horizonDbClusterPatch) + { + if (horizonDbClusterPatch == null) + { + return null; + } + return RequestContent.Create(horizonDbClusterPatch, 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 virtual 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(HorizonDbClusterPatch)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPatch 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(HorizonDbClusterPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterPatch DeserializeHorizonDbClusterPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + HorizonDbClusterPropertiesForPatchUpdate properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbClusterPropertiesForPatchUpdate.DeserializeHorizonDbClusterPropertiesForPatchUpdate(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs new file mode 100644 index 000000000000..5086c7123466 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPatch.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// HorizonDb cluster for update operations. + public partial class HorizonDbClusterPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbClusterPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Resource tags. + /// The properties that can be updated for a HorizonDb cluster. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterPatch(IDictionary tags, HorizonDbClusterPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) + { + Tags = tags; + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Resource tags. + public IDictionary Tags { get; } + + /// The properties that can be updated for a HorizonDb cluster. + public HorizonDbClusterPropertiesForPatchUpdate Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs new file mode 100644 index 000000000000..22d9b16ebd4e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs @@ -0,0 +1,378 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb cluster. + public partial class HorizonDbClusterProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbClusterProperties() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterProperties 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 DeserializeHorizonDbClusterProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterProperties)} 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(HorizonDbClusterProperties)} 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. + HorizonDbClusterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbClusterProperties)} does not support writing '{format}' format."); + } + writer.WritePropertyName("administratorLogin"u8); + writer.WriteStringValue(AdministratorLogin); + if (Optional.IsDefined(AdministratorLoginPassword)) + { + writer.WritePropertyName("administratorLoginPassword"u8); + writer.WriteStringValue(AdministratorLoginPassword); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(CreateMode)) + { + writer.WritePropertyName("createMode"u8); + writer.WriteStringValue(CreateMode.Value.ToString()); + } + if (Optional.IsDefined(PointInTimeUTC)) + { + writer.WritePropertyName("pointInTimeUTC"u8); + writer.WriteStringValue(PointInTimeUTC.Value, "O"); + } + if (Optional.IsDefined(SourceClusterResourceId)) + { + writer.WritePropertyName("sourceClusterResourceId"u8); + writer.WriteStringValue(SourceClusterResourceId); + } + if (Optional.IsDefined(PoolName)) + { + writer.WritePropertyName("poolName"u8); + writer.WriteStringValue(PoolName); + } + if (Optional.IsDefined(ReplicaCount)) + { + writer.WritePropertyName("replicaCount"u8); + writer.WriteNumberValue(ReplicaCount.Value); + } + if (Optional.IsDefined(VCores)) + { + writer.WritePropertyName("vCores"u8); + writer.WriteNumberValue(VCores.Value); + } + if (Optional.IsDefined(ProcessorType)) + { + writer.WritePropertyName("processorType"u8); + writer.WriteStringValue(ProcessorType); + } + if (Optional.IsDefined(Network)) + { + writer.WritePropertyName("network"u8); + writer.WriteObjectValue(Network, options); + } + if (options.Format != "W" && Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(FullyQualifiedDomainName)) + { + writer.WritePropertyName("fullyQualifiedDomainName"u8); + writer.WriteStringValue(FullyQualifiedDomainName); + } + if (options.Format != "W" && Optional.IsDefined(ReadonlyEndpoint)) + { + writer.WritePropertyName("readonlyEndpoint"u8); + writer.WriteStringValue(ReadonlyEndpoint); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(ZonePlacementPolicy)) + { + writer.WritePropertyName("zonePlacementPolicy"u8); + writer.WriteStringValue(ZonePlacementPolicy.Value.ToString()); + } + if (Optional.IsDefined(ParameterGroup)) + { + writer.WritePropertyName("parameterGroup"u8); + writer.WriteObjectValue(ParameterGroup, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterProperties 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(HorizonDbClusterProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + 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; + Network network = default; + State? state = default; + string fullyQualifiedDomainName = default; + string readonlyEndpoint = default; + ProvisioningState? provisioningState = default; + ZonePlacementPolicy? zonePlacementPolicy = default; + HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("administratorLogin"u8)) + { + administratorLogin = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("administratorLoginPassword"u8)) + { + administratorLoginPassword = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("version"u8)) + { + version = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("createMode"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createMode = new CreateModeCluster(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("pointInTimeUTC"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pointInTimeUTC = prop.Value.GetDateTimeOffset("O"); + continue; + } + if (prop.NameEquals("sourceClusterResourceId"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceClusterResourceId = new ResourceIdentifier(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("poolName"u8)) + { + poolName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("replicaCount"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicaCount = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("vCores"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + vCores = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("processorType"u8)) + { + processorType = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("network"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + network = Network.DeserializeNetwork(prop.Value, options); + continue; + } + if (prop.NameEquals("state"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new State(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("fullyQualifiedDomainName"u8)) + { + fullyQualifiedDomainName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("readonlyEndpoint"u8)) + { + readonlyEndpoint = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("zonePlacementPolicy"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + zonePlacementPolicy = new ZonePlacementPolicy(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("parameterGroup"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parameterGroup = HorizonDbClusterParameterGroupConnectionProperties.DeserializeHorizonDbClusterParameterGroupConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterProperties( + administratorLogin, + administratorLoginPassword, + version, + createMode, + pointInTimeUTC, + sourceClusterResourceId, + poolName, + replicaCount, + vCores, + processorType, + network, + state, + fullyQualifiedDomainName, + readonlyEndpoint, + provisioningState, + zonePlacementPolicy, + parameterGroup, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs new file mode 100644 index 000000000000..eb2d972cc617 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs @@ -0,0 +1,132 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb cluster. + public partial class HorizonDbClusterProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The administrator login name. + /// is null. + public HorizonDbClusterProperties(string administratorLogin) + { + Argument.AssertNotNull(administratorLogin, nameof(administratorLogin)); + + AdministratorLogin = administratorLogin; + } + + /// Initializes a new instance of . + /// 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 network related info. + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterProperties(string administratorLogin, string administratorLoginPassword, string version, CreateModeCluster? createMode, DateTimeOffset? pointInTimeUTC, ResourceIdentifier sourceClusterResourceId, string poolName, int? replicaCount, int? vCores, string processorType, Network network, State? state, string fullyQualifiedDomainName, string readonlyEndpoint, ProvisioningState? provisioningState, ZonePlacementPolicy? zonePlacementPolicy, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) + { + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + Version = version; + CreateMode = createMode; + PointInTimeUTC = pointInTimeUTC; + SourceClusterResourceId = sourceClusterResourceId; + PoolName = poolName; + ReplicaCount = replicaCount; + VCores = vCores; + ProcessorType = processorType; + Network = network; + State = state; + FullyQualifiedDomainName = fullyQualifiedDomainName; + ReadonlyEndpoint = readonlyEndpoint; + ProvisioningState = provisioningState; + ZonePlacementPolicy = zonePlacementPolicy; + ParameterGroup = parameterGroup; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The administrator login name. + public string AdministratorLogin { get; set; } + + /// The administrator login password. + public string AdministratorLoginPassword { get; set; } + + /// The version of the HorizonDb cluster. + public string Version { get; set; } + + /// The mode to create a new HorizonDb cluster. + public CreateModeCluster? CreateMode { get; set; } + + /// Restore point creation time specifying the time to restore from. + public DateTimeOffset? PointInTimeUTC { get; set; } + + /// The source cluster resource ID for restore or replica creation. + public ResourceIdentifier SourceClusterResourceId { get; set; } + + /// The pool name for restore or replica operations. + public string PoolName { get; set; } + + /// Number of replicas. + public int? ReplicaCount { get; set; } + + /// Number of vCores. + public int? VCores { get; set; } + + /// The processor type for the HorizonDb cluster. + public string ProcessorType { get; set; } + + /// The network related info. + internal Network Network { get; set; } + + /// Current state of the cluster. + public State? State { get; } + + /// The fully qualified domain name of the cluster. + public string FullyQualifiedDomainName { get; } + + /// The fully qualified domain name used for readonly endpoint for the cluster. + public string ReadonlyEndpoint { get; } + + /// The provisioning state of the cluster. + public ProvisioningState? ProvisioningState { get; } + + /// Defines how replicas are placed across availability zones. + public ZonePlacementPolicy? ZonePlacementPolicy { get; set; } + + /// Defines connection to a parameter group. + public HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get; set; } + + /// The flag indicating whether public ip is requested. + public PublicNetworkAccessState? PublicNetworkAccess + { + get + { + return Network is null ? default : Network.PublicNetworkAccess; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs new file mode 100644 index 000000000000..900973a50949 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.Serialization.cs @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb cluster for update operations. + public partial class HorizonDbClusterPropertiesForPatchUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPropertiesForPatchUpdate 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 DeserializeHorizonDbClusterPropertiesForPatchUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbClusterPropertiesForPatchUpdate)} 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(HorizonDbClusterPropertiesForPatchUpdate)} 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. + HorizonDbClusterPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbClusterPropertiesForPatchUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(AdministratorLoginPassword)) + { + writer.WritePropertyName("administratorLoginPassword"u8); + writer.WriteStringValue(AdministratorLoginPassword); + } + if (Optional.IsDefined(VCores)) + { + writer.WritePropertyName("vCores"u8); + writer.WriteNumberValue(VCores.Value); + } + if (Optional.IsDefined(ParameterGroup)) + { + writer.WritePropertyName("parameterGroup"u8); + writer.WriteObjectValue(ParameterGroup, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbClusterPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbClusterPropertiesForPatchUpdate 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(HorizonDbClusterPropertiesForPatchUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbClusterPropertiesForPatchUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbClusterPropertiesForPatchUpdate DeserializeHorizonDbClusterPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string administratorLoginPassword = default; + int? vCores = default; + HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("administratorLoginPassword"u8)) + { + administratorLoginPassword = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("vCores"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + vCores = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("parameterGroup"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parameterGroup = HorizonDbClusterParameterGroupConnectionProperties.DeserializeHorizonDbClusterParameterGroupConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbClusterPropertiesForPatchUpdate(administratorLoginPassword, vCores, parameterGroup, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.cs new file mode 100644 index 000000000000..e16bbe00c82c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterPropertiesForPatchUpdate.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; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb cluster for update operations. + public partial class HorizonDbClusterPropertiesForPatchUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbClusterPropertiesForPatchUpdate() + { + } + + /// Initializes a new instance of . + /// The administrator login password. + /// Number of vCores. + /// Defines connection to a parameter group. + /// Keeps track of any properties unknown to the library. + internal HorizonDbClusterPropertiesForPatchUpdate(string administratorLoginPassword, int? vCores, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) + { + AdministratorLoginPassword = administratorLoginPassword; + VCores = vCores; + ParameterGroup = parameterGroup; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The administrator login password. + public string AdministratorLoginPassword { get; set; } + + /// Number of vCores. + public int? VCores { get; set; } + + /// Defines connection to a parameter group. + public HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs new file mode 100644 index 000000000000..4350f133034f --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbFirewallRule list operation. + internal partial class HorizonDbFirewallRuleListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbFirewallRuleListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleListResult 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 DeserializeHorizonDbFirewallRuleListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbFirewallRuleListResult)} 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(HorizonDbFirewallRuleListResult)} 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. + HorizonDbFirewallRuleListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbFirewallRuleListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbFirewallRuleListResult(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 virtual 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(HorizonDbFirewallRuleListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbFirewallRuleData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbFirewallRuleListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleListResult 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(HorizonDbFirewallRuleListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbFirewallRuleListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbFirewallRuleListResult DeserializeHorizonDbFirewallRuleListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbFirewallRuleData.DeserializeHorizonDbFirewallRuleData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbFirewallRuleListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs new file mode 100644 index 000000000000..5b29c6e6ca0c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbFirewallRule list operation. + internal partial class HorizonDbFirewallRuleListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbFirewallRule items on this page. + internal HorizonDbFirewallRuleListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbFirewallRule items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbFirewallRuleListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbFirewallRule items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs new file mode 100644 index 000000000000..8d4a04bfbcc8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb firewall rule. + public partial class HorizonDbFirewallRuleProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbFirewallRuleProperties() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleProperties 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 DeserializeHorizonDbFirewallRuleProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbFirewallRuleProperties)} 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(HorizonDbFirewallRuleProperties)} 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. + HorizonDbFirewallRuleProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbFirewallRuleProperties)} does not support writing '{format}' format."); + } + writer.WritePropertyName("startIpAddress"u8); + writer.WriteStringValue(StartIpAddress); + writer.WritePropertyName("endIpAddress"u8); + writer.WriteStringValue(EndIpAddress); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbFirewallRuleProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbFirewallRuleProperties 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(HorizonDbFirewallRuleProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbFirewallRuleProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbFirewallRuleProperties DeserializeHorizonDbFirewallRuleProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string startIpAddress = default; + string endIpAddress = default; + string description = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("startIpAddress"u8)) + { + startIpAddress = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("endIpAddress"u8)) + { + endIpAddress = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbFirewallRuleProperties(startIpAddress, endIpAddress, description, provisioningState, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs new file mode 100644 index 000000000000..8c5dba4cddd8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb firewall rule. + public partial class HorizonDbFirewallRuleProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The start IP address of the firewall rule (IPv4). + /// The end IP address of the firewall rule (IPv4). + /// or is null. + public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) + { + Argument.AssertNotNull(startIpAddress, nameof(startIpAddress)); + Argument.AssertNotNull(endIpAddress, nameof(endIpAddress)); + + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress, string description, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + Description = description; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The start IP address of the firewall rule (IPv4). + public string StartIpAddress { get; set; } + + /// The end IP address of the firewall rule (IPv4). + public string EndIpAddress { get; set; } + + /// The description of the HorizonDb firewall rule. + public string Description { get; set; } + + /// The provisioning state of the firewall rule. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..216aea119089 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.Serialization.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbParameterGroupConnectionProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionProperties 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 DeserializeHorizonDbParameterGroupConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupConnectionProperties)} 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(HorizonDbParameterGroupConnectionProperties)} 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. + HorizonDbParameterGroupConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbParameterGroupConnectionProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W" && Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W" && Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionProperties 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(HorizonDbParameterGroupConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupConnectionProperties DeserializeHorizonDbParameterGroupConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + ResourceIdentifier id = default; + string @type = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("id"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("type"u8)) + { + @type = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupConnectionProperties(name, id, @type, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs new file mode 100644 index 000000000000..b4d8188409bf --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionProperties.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Connection information for HorizonDb parameter group. + public partial class HorizonDbParameterGroupConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbParameterGroupConnectionProperties() + { + } + + /// Initializes a new instance of . + /// The name of the connected resource. + /// The resource ID of the connected resource. + /// The type of the resource. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupConnectionProperties(string name, ResourceIdentifier id, string @type, IDictionary additionalBinaryDataProperties) + { + Name = name; + Id = id; + Type = @type; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The name of the connected resource. + public string Name { get; } + + /// The resource ID of the connected resource. + public ResourceIdentifier Id { get; } + + /// The type of the resource. + public string Type { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs new file mode 100644 index 000000000000..448bbd2c9768 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbParameterGroupConnectionProperties list operation. + internal partial class HorizonDbParameterGroupConnectionPropertiesListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbParameterGroupConnectionPropertiesListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionPropertiesListResult 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 DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupConnectionPropertiesListResult)} 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(HorizonDbParameterGroupConnectionPropertiesListResult)} 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. + HorizonDbParameterGroupConnectionPropertiesListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbParameterGroupConnectionPropertiesListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(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 virtual 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(HorizonDbParameterGroupConnectionPropertiesListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbParameterGroupConnectionProperties item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupConnectionPropertiesListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupConnectionPropertiesListResult 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(HorizonDbParameterGroupConnectionPropertiesListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupConnectionPropertiesListResult DeserializeHorizonDbParameterGroupConnectionPropertiesListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbParameterGroupConnectionProperties.DeserializeHorizonDbParameterGroupConnectionProperties(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupConnectionPropertiesListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs new file mode 100644 index 000000000000..fb8aa94a553c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupConnectionPropertiesListResult.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbParameterGroupConnectionProperties list operation. + internal partial class HorizonDbParameterGroupConnectionPropertiesListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbParameterGroupConnectionProperties items on this page. + internal HorizonDbParameterGroupConnectionPropertiesListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbParameterGroupConnectionProperties items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupConnectionPropertiesListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbParameterGroupConnectionProperties items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs new file mode 100644 index 000000000000..82424f9f3339 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbParameterGroup list operation. + internal partial class HorizonDbParameterGroupListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbParameterGroupListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupListResult 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 DeserializeHorizonDbParameterGroupListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupListResult)} 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(HorizonDbParameterGroupListResult)} 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. + HorizonDbParameterGroupListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbParameterGroupListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbParameterGroupListResult(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 virtual 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(HorizonDbParameterGroupListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbParameterGroupData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupListResult 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(HorizonDbParameterGroupListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupListResult DeserializeHorizonDbParameterGroupListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbParameterGroupData.DeserializeHorizonDbParameterGroupData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs new file mode 100644 index 000000000000..d7b4badc1604 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbParameterGroup list operation. + internal partial class HorizonDbParameterGroupListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbParameterGroup items on this page. + internal HorizonDbParameterGroupListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbParameterGroup items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbParameterGroup items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs new file mode 100644 index 000000000000..c65903604d81 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.Serialization.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPatch : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPatch 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 DeserializeHorizonDbParameterGroupPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupPatch)} 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(HorizonDbParameterGroupPatch)} 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. + HorizonDbParameterGroupPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbParameterGroupPatch horizonDbParameterGroupPatch) + { + if (horizonDbParameterGroupPatch == null) + { + return null; + } + return RequestContent.Create(horizonDbParameterGroupPatch, 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 virtual 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(HorizonDbParameterGroupPatch)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPatch 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(HorizonDbParameterGroupPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupPatch DeserializeHorizonDbParameterGroupPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + HorizonDbParameterGroupPropertiesForPatchUpdate properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbParameterGroupPropertiesForPatchUpdate.DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs new file mode 100644 index 000000000000..b3ea397fe7f6 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPatch.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbParameterGroupPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Resource tags. + /// The properties that can be updated for a HorizonDb parameter group. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupPatch(IDictionary tags, HorizonDbParameterGroupPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) + { + Tags = tags; + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Resource tags. + public IDictionary Tags { get; } + + /// The properties that can be updated for a HorizonDb parameter group. + public HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs new file mode 100644 index 000000000000..f0c571df622c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs @@ -0,0 +1,233 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb parameter group. + public partial class HorizonDbParameterGroupProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupProperties 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 DeserializeHorizonDbParameterGroupProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupProperties)} 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(HorizonDbParameterGroupProperties)} 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. + HorizonDbParameterGroupProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbParameterGroupProperties)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"u8); + writer.WriteStartArray(); + foreach (ParameterProperties item in Parameters) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(PgVersion)) + { + writer.WritePropertyName("pgVersion"u8); + writer.WriteNumberValue(PgVersion.Value); + } + if (options.Format != "W" && Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteNumberValue(Version.Value); + } + if (Optional.IsDefined(ApplyImmediately)) + { + writer.WritePropertyName("applyImmediately"u8); + writer.WriteBooleanValue(ApplyImmediately.Value); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupProperties 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(HorizonDbParameterGroupProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterGroupProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList parameters = default; + string description = default; + int? pgVersion = default; + int? version = default; + bool? applyImmediately = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("parameters"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); + } + parameters = array; + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("pgVersion"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pgVersion = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("version"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + version = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("applyImmediately"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applyImmediately = prop.Value.GetBoolean(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupProperties( + parameters ?? new ChangeTrackingList(), + description, + pgVersion, + version, + applyImmediately, + provisioningState, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs new file mode 100644 index 000000000000..4b3e97874eed --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb parameter group. + public partial class HorizonDbParameterGroupProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbParameterGroupProperties() + { + Parameters = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupProperties(IList parameters, string description, int? pgVersion, int? version, bool? applyImmediately, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + Parameters = parameters; + Description = description; + PgVersion = pgVersion; + Version = version; + ApplyImmediately = applyImmediately; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Parameters in the parameter group. + public IList Parameters { get; } + + /// Description of the parameter group. + public string Description { get; set; } + + /// PostgreSQL version for the parameter group. + public int? PgVersion { get; set; } + + /// Current version of the parameter group. + public int? Version { get; } + + /// Indicates whether the parameters should be applied immediately. + public bool? ApplyImmediately { get; set; } + + /// The provisioning state of the parameter group. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs new file mode 100644 index 000000000000..c257685586b9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPropertiesForPatchUpdate 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 DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbParameterGroupPropertiesForPatchUpdate)} 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} 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. + HorizonDbParameterGroupPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"u8); + writer.WriteStartArray(); + foreach (ParameterProperties item in Parameters) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(ApplyImmediately)) + { + writer.WritePropertyName("applyImmediately"u8); + writer.WriteBooleanValue(ApplyImmediately.Value); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbParameterGroupPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbParameterGroupPropertiesForPatchUpdate 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(HorizonDbParameterGroupPropertiesForPatchUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbParameterGroupPropertiesForPatchUpdate DeserializeHorizonDbParameterGroupPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList parameters = default; + string description = default; + bool? applyImmediately = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("parameters"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); + } + parameters = array; + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("applyImmediately"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applyImmediately = prop.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbParameterGroupPropertiesForPatchUpdate(parameters ?? new ChangeTrackingList(), description, applyImmediately, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs new file mode 100644 index 000000000000..5412f992ef1e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb parameter group for update operations. + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbParameterGroupPropertiesForPatchUpdate() + { + Parameters = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Parameters in the parameter group. + /// Description of the parameter group. + /// Indicates whether the parameters should be applied immediately. + /// Keeps track of any properties unknown to the library. + internal HorizonDbParameterGroupPropertiesForPatchUpdate(IList parameters, string description, bool? applyImmediately, IDictionary additionalBinaryDataProperties) + { + Parameters = parameters; + Description = description; + ApplyImmediately = applyImmediately; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Parameters in the parameter group. + public IList Parameters { get; } + + /// Description of the parameter group. + public string Description { get; set; } + + /// Indicates whether the parameters should be applied immediately. + public bool? ApplyImmediately { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs new file mode 100644 index 000000000000..705400b920a5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbPool list operation. + internal partial class HorizonDbPoolListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbPoolListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolListResult 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 DeserializeHorizonDbPoolListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPoolListResult)} 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(HorizonDbPoolListResult)} 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. + HorizonDbPoolListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPoolListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPoolListResult(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 virtual 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(HorizonDbPoolListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbPoolData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPoolListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolListResult 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(HorizonDbPoolListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPoolListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPoolListResult DeserializeHorizonDbPoolListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbPoolData.DeserializeHorizonDbPoolData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPoolListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs new file mode 100644 index 000000000000..7bca7b9b5543 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbPool list operation. + internal partial class HorizonDbPoolListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbPool items on this page. + internal HorizonDbPoolListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbPool items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPoolListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbPool items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs new file mode 100644 index 000000000000..2c7bd9a943f8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs @@ -0,0 +1,224 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb pool. + public partial class HorizonDbPoolProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolProperties 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 DeserializeHorizonDbPoolProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPoolProperties)} 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(HorizonDbPoolProperties)} 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. + HorizonDbPoolProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbPoolProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location.Value); + } + if (options.Format != "W" && Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ReplicaCount)) + { + writer.WritePropertyName("replicaCount"u8); + writer.WriteNumberValue(ReplicaCount.Value); + } + if (options.Format != "W" && Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (options.Format != "W" && Optional.IsDefined(CreateMode)) + { + writer.WritePropertyName("createMode"u8); + writer.WriteStringValue(CreateMode.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPoolProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPoolProperties 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(HorizonDbPoolProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPoolProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AzureLocation? location = default; + State? state = default; + int? replicaCount = default; + string version = default; + CreateModePool? createMode = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("location"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = new AzureLocation(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("state"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new State(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("replicaCount"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicaCount = prop.Value.GetInt32(); + continue; + } + if (prop.NameEquals("version"u8)) + { + version = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("createMode"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createMode = new CreateModePool(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPoolProperties( + location, + state, + replicaCount, + version, + createMode, + provisioningState, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs new file mode 100644 index 000000000000..ad166928601d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb pool. + public partial class HorizonDbPoolProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal HorizonDbPoolProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPoolProperties(AzureLocation? location, State? state, int? replicaCount, string version, CreateModePool? createMode, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + Location = location; + State = state; + ReplicaCount = replicaCount; + Version = version; + CreateMode = createMode; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The location of the HorizonDb pool. + public AzureLocation? Location { get; } + + /// Current state of the pool. + public State? State { get; } + + /// Number of replicas in the pool. + public int? ReplicaCount { get; } + + /// The version of the HorizonDb pool. + public string Version { get; } + + /// The create mode for the pool. + public CreateModePool? CreateMode { get; } + + /// The provisioning state of the pool. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs new file mode 100644 index 000000000000..1b9a0f1a13ab --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbPrivateLinkResource list operation. + internal partial class HorizonDbPrivateLinkResourceListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbPrivateLinkResourceListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkResourceListResult 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 DeserializeHorizonDbPrivateLinkResourceListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbPrivateLinkResourceListResult)} 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(HorizonDbPrivateLinkResourceListResult)} 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. + HorizonDbPrivateLinkResourceListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbPrivateLinkResourceListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbPrivateLinkResourceListResult(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 virtual 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(HorizonDbPrivateLinkResourceListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbPrivateLinkResourceData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbPrivateLinkResourceListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbPrivateLinkResourceListResult 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(HorizonDbPrivateLinkResourceListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbPrivateLinkResourceListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbPrivateLinkResourceListResult DeserializeHorizonDbPrivateLinkResourceListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbPrivateLinkResourceData.DeserializeHorizonDbPrivateLinkResourceData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbPrivateLinkResourceListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs new file mode 100644 index 000000000000..e00dbb64068c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateLinkResourceListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbPrivateLinkResource list operation. + internal partial class HorizonDbPrivateLinkResourceListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbPrivateLinkResource items on this page. + internal HorizonDbPrivateLinkResourceListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbPrivateLinkResource items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbPrivateLinkResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbPrivateLinkResource items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs new file mode 100644 index 000000000000..dc324f789f87 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbReplica list operation. + internal partial class HorizonDbReplicaListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal HorizonDbReplicaListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaListResult 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 DeserializeHorizonDbReplicaListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaListResult)} 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(HorizonDbReplicaListResult)} 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. + HorizonDbReplicaListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static HorizonDbReplicaListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeHorizonDbReplicaListResult(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 virtual 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(HorizonDbReplicaListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (HorizonDbReplicaData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaListResult 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(HorizonDbReplicaListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaListResult DeserializeHorizonDbReplicaListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(HorizonDbReplicaData.DeserializeHorizonDbReplicaData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs new file mode 100644 index 000000000000..a2d3df7678a3 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a HorizonDbReplica list operation. + internal partial class HorizonDbReplicaListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The HorizonDbReplica items on this page. + internal HorizonDbReplicaListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The HorizonDbReplica items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The HorizonDbReplica items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs new file mode 100644 index 000000000000..e189f61984f1 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// HorizonDb replica for update operations. + public partial class HorizonDbReplicaPatch : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPatch 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 DeserializeHorizonDbReplicaPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaPatch)} 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(HorizonDbReplicaPatch)} 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. + HorizonDbReplicaPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(HorizonDbReplicaPatch horizonDbReplicaPatch) + { + if (horizonDbReplicaPatch == null) + { + return null; + } + return RequestContent.Create(horizonDbReplicaPatch, 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 virtual 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(HorizonDbReplicaPatch)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPatch 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(HorizonDbReplicaPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaPatch DeserializeHorizonDbReplicaPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + HorizonDbReplicaPropertiesForPatchUpdate properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = HorizonDbReplicaPropertiesForPatchUpdate.DeserializeHorizonDbReplicaPropertiesForPatchUpdate(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaPatch(properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs new file mode 100644 index 000000000000..0b81c61a986b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// HorizonDb replica for update operations. + public partial class HorizonDbReplicaPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaPatch() + { + } + + /// Initializes a new instance of . + /// Properties of a HorizonDb replica for update operations. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaPatch(HorizonDbReplicaPropertiesForPatchUpdate properties, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Properties of a HorizonDb replica for update operations. + internal HorizonDbReplicaPropertiesForPatchUpdate Properties { get; set; } + + /// Role of the replica. + public ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole + { + get + { + return Properties is null ? default : Properties.Role; + } + set + { + if (Properties is null) + { + Properties = new HorizonDbReplicaPropertiesForPatchUpdate(); + } + Properties.Role = value; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs new file mode 100644 index 000000000000..b75d12cc3eab --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb replica. + public partial class HorizonDbReplicaProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaProperties 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 DeserializeHorizonDbReplicaProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaProperties)} 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(HorizonDbReplicaProperties)} 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. + HorizonDbReplicaProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbReplicaProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Role)) + { + writer.WritePropertyName("role"u8); + writer.WriteStringValue(Role.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(FullyQualifiedDomainName)) + { + writer.WritePropertyName("fullyQualifiedDomainName"u8); + writer.WriteStringValue(FullyQualifiedDomainName); + } + if (Optional.IsDefined(AvailabilityZone)) + { + writer.WritePropertyName("availabilityZone"u8); + writer.WriteStringValue(AvailabilityZone); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaProperties 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(HorizonDbReplicaProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ReplicaRole? role = default; + State? status = default; + string fullyQualifiedDomainName = default; + string availabilityZone = default; + ProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("role"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + role = new ReplicaRole(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("status"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new State(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("fullyQualifiedDomainName"u8)) + { + fullyQualifiedDomainName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("availabilityZone"u8)) + { + availabilityZone = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaProperties( + role, + status, + fullyQualifiedDomainName, + availabilityZone, + provisioningState, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs new file mode 100644 index 000000000000..a4175e6efde1 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb replica. + public partial class HorizonDbReplicaProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaProperties(ReplicaRole? role, State? status, string fullyQualifiedDomainName, string availabilityZone, ProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + Role = role; + Status = status; + FullyQualifiedDomainName = fullyQualifiedDomainName; + AvailabilityZone = availabilityZone; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Role of the replica. + public ReplicaRole? Role { get; set; } + + /// Current status of the replica. + public State? Status { get; } + + /// The fully qualified domain name of the replica. + public string FullyQualifiedDomainName { get; } + + /// The availability zone of the replica. + public string AvailabilityZone { get; set; } + + /// The provisioning state of the replica. + public ProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs new file mode 100644 index 000000000000..ed40b9da277b --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb replica for update operations. + internal partial class HorizonDbReplicaPropertiesForPatchUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPropertiesForPatchUpdate 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 DeserializeHorizonDbReplicaPropertiesForPatchUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(HorizonDbReplicaPropertiesForPatchUpdate)} 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(HorizonDbReplicaPropertiesForPatchUpdate)} 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. + HorizonDbReplicaPropertiesForPatchUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(HorizonDbReplicaPropertiesForPatchUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Role)) + { + writer.WritePropertyName("role"u8); + writer.WriteStringValue(Role.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + HorizonDbReplicaPropertiesForPatchUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual HorizonDbReplicaPropertiesForPatchUpdate 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(HorizonDbReplicaPropertiesForPatchUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeHorizonDbReplicaPropertiesForPatchUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static HorizonDbReplicaPropertiesForPatchUpdate DeserializeHorizonDbReplicaPropertiesForPatchUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ReplicaRole? role = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("role"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + role = new ReplicaRole(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new HorizonDbReplicaPropertiesForPatchUpdate(role, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs new file mode 100644 index 000000000000..f94bd76eb9e8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb replica for update operations. + internal partial class HorizonDbReplicaPropertiesForPatchUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public HorizonDbReplicaPropertiesForPatchUpdate() + { + } + + /// Initializes a new instance of . + /// Role of the replica. + /// Keeps track of any properties unknown to the library. + internal HorizonDbReplicaPropertiesForPatchUpdate(ReplicaRole? role, IDictionary additionalBinaryDataProperties) + { + Role = role; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Role of the replica. + public ReplicaRole? Role { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs new file mode 100644 index 000000000000..7afd80a7b992 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Network properties. + internal partial class Network : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual Network 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 DeserializeNetwork(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(Network)} 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(Network)} 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. + Network IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(Network)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(PublicNetworkAccess)) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + Network IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual Network 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(Network)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNetwork(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static Network DeserializeNetwork(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + PublicNetworkAccessState? publicNetworkAccess = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("publicNetworkAccess"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publicNetworkAccess = new PublicNetworkAccessState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new Network(publicNetworkAccess, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs new file mode 100644 index 000000000000..582940dd70d5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Network properties. + internal partial class Network + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public Network() + { + } + + /// Initializes a new instance of . + /// The flag indicating whether public ip is requested. + /// Keeps track of any properties unknown to the library. + internal Network(PublicNetworkAccessState? publicNetworkAccess, IDictionary additionalBinaryDataProperties) + { + PublicNetworkAccess = publicNetworkAccess; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The flag indicating whether public ip is requested. + public PublicNetworkAccessState? PublicNetworkAccess { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs new file mode 100644 index 000000000000..12fb562c8a17 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.Serialization.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The template for adding optional properties. + public partial class OptionalPropertiesUpdateableProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual OptionalPropertiesUpdateableProperties 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 DeserializeOptionalPropertiesUpdateableProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(OptionalPropertiesUpdateableProperties)} 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(OptionalPropertiesUpdateableProperties)} 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. + OptionalPropertiesUpdateableProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(OptionalPropertiesUpdateableProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(PrivateEndpoint)) + { + writer.WritePropertyName("privateEndpoint"u8); + writer.WriteObjectValue(PrivateEndpoint, options); + } + if (Optional.IsDefined(PrivateLinkServiceConnectionState)) + { + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + OptionalPropertiesUpdateableProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual OptionalPropertiesUpdateableProperties 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(OptionalPropertiesUpdateableProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeOptionalPropertiesUpdateableProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static OptionalPropertiesUpdateableProperties DeserializeOptionalPropertiesUpdateableProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + PrivateEndpoint privateEndpoint = default; + HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("privateEndpoint"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(prop.Value, options); + continue; + } + if (prop.NameEquals("privateLinkServiceConnectionState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateLinkServiceConnectionState = HorizonDBPrivateLinkServiceConnectionState.DeserializeHorizonDBPrivateLinkServiceConnectionState(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new OptionalPropertiesUpdateableProperties(privateEndpoint, privateLinkServiceConnectionState, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs new file mode 100644 index 000000000000..5749ced87a73 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/OptionalPropertiesUpdateableProperties.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The template for adding optional properties. + public partial class OptionalPropertiesUpdateableProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public OptionalPropertiesUpdateableProperties() + { + } + + /// Initializes a new instance of . + /// The private endpoint resource. + /// A collection of information about the state of the connection between service consumer and provider. + /// Keeps track of any properties unknown to the library. + internal OptionalPropertiesUpdateableProperties(PrivateEndpoint privateEndpoint, HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState, IDictionary additionalBinaryDataProperties) + { + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The private endpoint resource. + internal PrivateEndpoint PrivateEndpoint { get; set; } + + /// A collection of information about the state of the connection between service consumer and provider. + public HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + + /// The resource identifier of the private endpoint. + public ResourceIdentifier PrivateEndpointId + { + get + { + return PrivateEndpoint is null ? default : PrivateEndpoint.Id; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs new file mode 100644 index 000000000000..2555fad1cc35 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs @@ -0,0 +1,251 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb parameters. + public partial class ParameterProperties : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ParameterProperties 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 DeserializeParameterProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ParameterProperties)} 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(ParameterProperties)} 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. + ParameterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(ParameterProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W" && Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (options.Format != "W" && Optional.IsDefined(DataType)) + { + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType); + } + if (options.Format != "W" && Optional.IsDefined(AllowedValues)) + { + writer.WritePropertyName("allowedValues"u8); + writer.WriteStringValue(AllowedValues); + } + if (options.Format != "W" && Optional.IsDefined(IsDynamic)) + { + writer.WritePropertyName("isDynamic"u8); + writer.WriteBooleanValue(IsDynamic.Value); + } + if (options.Format != "W" && Optional.IsDefined(IsReadOnly)) + { + writer.WritePropertyName("isReadOnly"u8); + writer.WriteBooleanValue(IsReadOnly.Value); + } + if (options.Format != "W" && Optional.IsDefined(DocumentationLink)) + { + writer.WritePropertyName("documentationLink"u8); + writer.WriteStringValue(DocumentationLink.AbsoluteUri); + } + if (options.Format != "W" && Optional.IsDefined(Unit)) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + ParameterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ParameterProperties 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(ParameterProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeParameterProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ParameterProperties DeserializeParameterProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + 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; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("value"u8)) + { + value = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("dataType"u8)) + { + dataType = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("allowedValues"u8)) + { + allowedValues = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("isDynamic"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDynamic = prop.Value.GetBoolean(); + continue; + } + if (prop.NameEquals("isReadOnly"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isReadOnly = prop.Value.GetBoolean(); + continue; + } + if (prop.NameEquals("documentationLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + documentationLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (prop.NameEquals("unit"u8)) + { + unit = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new ParameterProperties( + name, + description, + value, + dataType, + allowedValues, + isDynamic, + isReadOnly, + documentationLink, + unit, + additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs new file mode 100644 index 000000000000..b1bf0993417e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of a HorizonDb parameters. + public partial class ParameterProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public ParameterProperties() + { + } + + /// Initializes a new instance of . + /// 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. + /// Keeps track of any properties unknown to the library. + internal ParameterProperties(string name, string description, string value, string dataType, string allowedValues, bool? isDynamic, bool? isReadOnly, Uri documentationLink, string unit, IDictionary additionalBinaryDataProperties) + { + Name = name; + Description = description; + Value = value; + DataType = dataType; + AllowedValues = allowedValues; + IsDynamic = isDynamic; + IsReadOnly = isReadOnly; + DocumentationLink = documentationLink; + Unit = unit; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The name of the parameter. + public string Name { get; set; } + + /// The description of the parameter. + public string Description { get; } + + /// The value of the configuration. + public string Value { get; set; } + + /// The data type of the parameter. + public string DataType { get; } + + /// The allowed values for the parameter. + public string AllowedValues { get; } + + /// Whether the parameter can be changed dynamically. + public bool? IsDynamic { get; } + + /// Whether the parameter is a read-only parameter. + public bool? IsReadOnly { get; } + + /// Link to parameter documentation. + public Uri DocumentationLink { get; } + + /// The unit of measurement for the parameter. + public string Unit { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs new file mode 100644 index 000000000000..69ea8d03806e --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.Serialization.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The private endpoint resource. + internal partial class PrivateEndpoint : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpoint 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 DeserializePrivateEndpoint(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpoint)} 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(PrivateEndpoint)} 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. + PrivateEndpoint IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(PrivateEndpoint)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpoint 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(PrivateEndpoint)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpoint(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + 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 (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpoint(id, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs new file mode 100644 index 000000000000..45954154d9ac --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpoint.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The private endpoint resource. + internal partial class PrivateEndpoint + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public PrivateEndpoint() + { + } + + /// Initializes a new instance of . + /// The resource identifier of the private endpoint. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpoint(ResourceIdentifier id, IDictionary additionalBinaryDataProperties) + { + Id = id; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The resource identifier of the private endpoint. + public ResourceIdentifier Id { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..4f8f7066ce46 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs @@ -0,0 +1,210 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of the private endpoint connection. + public partial class PrivateEndpointConnectionProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal PrivateEndpointConnectionProperties() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionProperties 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 DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionProperties)} 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(PrivateEndpointConnectionProperties)} 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. + PrivateEndpointConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// 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 virtual 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(PrivateEndpointConnectionProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (string item in GroupIds) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(PrivateEndpoint)) + { + writer.WritePropertyName("privateEndpoint"u8); + writer.WriteObjectValue(PrivateEndpoint, options); + } + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpointConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionProperties 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(PrivateEndpointConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionProperties DeserializePrivateEndpointConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList groupIds = default; + PrivateEndpoint privateEndpoint = default; + HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + HorizonDBPrivateEndpointConnectionProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("groupIds"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + groupIds = array; + continue; + } + if (prop.NameEquals("privateEndpoint"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(prop.Value, options); + continue; + } + if (prop.NameEquals("privateLinkServiceConnectionState"u8)) + { + privateLinkServiceConnectionState = HorizonDBPrivateLinkServiceConnectionState.DeserializeHorizonDBPrivateLinkServiceConnectionState(prop.Value, options); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new HorizonDBPrivateEndpointConnectionProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionProperties(groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs new file mode 100644 index 000000000000..86b79ee5e919 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -0,0 +1,65 @@ +// 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; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Properties of the private endpoint connection. + public partial class PrivateEndpointConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// A collection of information about the state of the connection between service consumer and provider. + internal PrivateEndpointConnectionProperties(HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + { + GroupIds = new ChangeTrackingList(); + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + } + + /// Initializes a new instance of . + /// The group ids for the private endpoint resource. + /// The private endpoint resource. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionProperties(IReadOnlyList groupIds, PrivateEndpoint privateEndpoint, HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState, HorizonDBPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + GroupIds = groupIds; + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The group ids for the private endpoint resource. + public IReadOnlyList GroupIds { get; } + + /// The private endpoint resource. + internal PrivateEndpoint PrivateEndpoint { get; } + + /// A collection of information about the state of the connection between service consumer and provider. + public HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; } + + /// The provisioning state of the private endpoint connection resource. + public HorizonDBPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + + /// The resource identifier of the private endpoint. + public ResourceIdentifier PrivateEndpointId + { + get + { + return PrivateEndpoint.Id; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs new file mode 100644 index 000000000000..f45c30cfe79a --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a PrivateEndpointConnectionResource list operation. + internal partial class PrivateEndpointConnectionResourceListResult : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal PrivateEndpointConnectionResourceListResult() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionResourceListResult 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 DeserializePrivateEndpointConnectionResourceListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceListResult)} 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(PrivateEndpointConnectionResourceListResult)} 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. + PrivateEndpointConnectionResourceListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static PrivateEndpointConnectionResourceListResult FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePrivateEndpointConnectionResourceListResult(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 virtual 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(PrivateEndpointConnectionResourceListResult)} does not support writing '{format}' format."); + } + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (PrivateEndpointConnectionResourceData item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpointConnectionResourceListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionResourceListResult 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(PrivateEndpointConnectionResourceListResult)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionResourceListResult(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionResourceListResult DeserializePrivateEndpointConnectionResourceListResult(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + Uri nextLink = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + array.Add(PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(item, options)); + } + value = array; + continue; + } + if (prop.NameEquals("nextLink"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString(), UriKind.RelativeOrAbsolute); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionResourceListResult(value, nextLink, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs new file mode 100644 index 000000000000..c359bc6ff892 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs @@ -0,0 +1,45 @@ +// 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.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The response of a PrivateEndpointConnectionResource list operation. + internal partial class PrivateEndpointConnectionResourceListResult + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The PrivateEndpointConnectionResource items on this page. + internal PrivateEndpointConnectionResourceListResult(IEnumerable value) + { + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The PrivateEndpointConnectionResource items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) + { + Value = value; + NextLink = nextLink; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The PrivateEndpointConnectionResource items on this page. + public IList Value { get; } + + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs new file mode 100644 index 000000000000..e57ab6ee8a5d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// PATCH model for private endpoint connections. + public partial class PrivateEndpointConnectionUpdate : IJsonModel + { + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionUpdate 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 DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionUpdate)} 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(PrivateEndpointConnectionUpdate)} 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. + PrivateEndpointConnectionUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => 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(PrivateEndpointConnectionUpdate privateEndpointConnectionUpdate) + { + if (privateEndpointConnectionUpdate == null) + { + return null; + } + return RequestContent.Create(privateEndpointConnectionUpdate, 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 virtual 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(PrivateEndpointConnectionUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + PrivateEndpointConnectionUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionUpdate 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(PrivateEndpointConnectionUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionUpdate DeserializePrivateEndpointConnectionUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + OptionalPropertiesUpdateableProperties properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = OptionalPropertiesUpdateableProperties.DeserializeOptionalPropertiesUpdateableProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionUpdate(properties, additionalBinaryDataProperties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs new file mode 100644 index 000000000000..a0afccf688a1 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// PATCH model for private endpoint connections. + public partial class PrivateEndpointConnectionUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public PrivateEndpointConnectionUpdate() + { + } + + /// Initializes a new instance of . + /// The private endpoint connection properties. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionUpdate(OptionalPropertiesUpdateableProperties properties, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The private endpoint connection properties. + public OptionalPropertiesUpdateableProperties Properties { get; set; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..8de2fd798e4d --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The provisioning state. + public readonly partial struct ProvisioningState : IEquatable + { + private readonly string _value; + /// Provisioning completed successfully. + private const string SucceededValue = "Succeeded"; + /// Provisioning failed. + private const string FailedValue = "Failed"; + /// Provisioning was canceled. + private const string CanceledValue = "Canceled"; + /// Provisioning is in progress. + private const string InProgressValue = "InProgress"; + /// Provisioning is in progress. + private const string ProvisioningValue = "Provisioning"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ProvisioningState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Provisioning completed successfully. + public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); + + /// Provisioning failed. + public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); + + /// Provisioning was canceled. + public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); + + /// Provisioning is in progress. + public static ProvisioningState InProgress { get; } = new ProvisioningState(InProgressValue); + + /// Provisioning is in progress. + public static ProvisioningState Provisioning { get; } = new ProvisioningState(ProvisioningValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ProvisioningState?(string value) => value == null ? null : new ProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); + + /// + public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs new file mode 100644 index 000000000000..28cdafdf5fa0 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Indicates if public network access is enabled or not. + public readonly partial struct PublicNetworkAccessState : IEquatable + { + private readonly string _value; + /// Public network access is enabled. + private const string EnabledValue = "Enabled"; + /// Public network access is disabled. + private const string DisabledValue = "Disabled"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public PublicNetworkAccessState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Public network access is enabled. + public static PublicNetworkAccessState Enabled { get; } = new PublicNetworkAccessState(EnabledValue); + + /// Public network access is disabled. + public static PublicNetworkAccessState Disabled { get; } = new PublicNetworkAccessState(DisabledValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(PublicNetworkAccessState left, PublicNetworkAccessState right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(PublicNetworkAccessState left, PublicNetworkAccessState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator PublicNetworkAccessState(string value) => new PublicNetworkAccessState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator PublicNetworkAccessState?(string value) => value == null ? null : new PublicNetworkAccessState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PublicNetworkAccessState other && Equals(other); + + /// + public bool Equals(PublicNetworkAccessState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs new file mode 100644 index 000000000000..d7d7d4373ce8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Role of the replica. + public readonly partial struct ReplicaRole : IEquatable + { + private readonly string _value; + /// Read-only replica. + private const string ReadValue = "Read"; + /// ReadWrite replica. + private const string ReadWriteValue = "ReadWrite"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ReplicaRole(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Read-only replica. + public static ReplicaRole Read { get; } = new ReplicaRole(ReadValue); + + /// ReadWrite replica. + public static ReplicaRole ReadWrite { get; } = new ReplicaRole(ReadWriteValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ReplicaRole left, ReplicaRole right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ReplicaRole left, ReplicaRole right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ReplicaRole(string value) => new ReplicaRole(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ReplicaRole?(string value) => value == null ? null : new ReplicaRole(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ReplicaRole other && Equals(other); + + /// + public bool Equals(ReplicaRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs new file mode 100644 index 000000000000..5b7a63ac0817 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// Current states. + public readonly partial struct State : IEquatable + { + private readonly string _value; + /// Is ready and operational. + private const string ReadyValue = "Ready"; + /// Is being dropped/deleted. + private const string DroppingValue = "Dropping"; + /// Is disabled. + private const string DisabledValue = "Disabled"; + /// Is starting up. + private const string StartingValue = "Starting"; + /// Is stopping. + private const string StoppingValue = "Stopping"; + /// Is stopped. + private const string StoppedValue = "Stopped"; + /// Is being updated. + private const string UpdatingValue = "Updating"; + /// Is healthy. + private const string HealthyValue = "Healthy"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public State(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Is ready and operational. + public static State Ready { get; } = new State(ReadyValue); + + /// Is being dropped/deleted. + public static State Dropping { get; } = new State(DroppingValue); + + /// Is disabled. + public static State Disabled { get; } = new State(DisabledValue); + + /// Is starting up. + public static State Starting { get; } = new State(StartingValue); + + /// Is stopping. + public static State Stopping { get; } = new State(StoppingValue); + + /// Is stopped. + public static State Stopped { get; } = new State(StoppedValue); + + /// Is being updated. + public static State Updating { get; } = new State(UpdatingValue); + + /// Is healthy. + public static State Healthy { get; } = new State(HealthyValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(State left, State right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(State left, State right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator State(string value) => new State(value); + + /// Converts a string to a . + /// The value. + public static implicit operator State?(string value) => value == null ? null : new State(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is State other && Equals(other); + + /// + public bool Equals(State other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs new file mode 100644 index 000000000000..4ac8970ff7d2 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.HorizonDB; + +namespace Azure.ResourceManager.HorizonDB.Models +{ + /// The zone redundancy option for the cluster. + public readonly partial struct ZonePlacementPolicy : IEquatable + { + private readonly string _value; + /// Enforce zonal redundancy. + private const string StrictValue = "Strict"; + /// Best-effort placement (default). + private const string BestEffortValue = "BestEffort"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ZonePlacementPolicy(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Enforce zonal redundancy. + public static ZonePlacementPolicy Strict { get; } = new ZonePlacementPolicy(StrictValue); + + /// Best-effort placement (default). + public static ZonePlacementPolicy BestEffort { get; } = new ZonePlacementPolicy(BestEffortValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ZonePlacementPolicy left, ZonePlacementPolicy right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ZonePlacementPolicy left, ZonePlacementPolicy right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ZonePlacementPolicy(string value) => new ZonePlacementPolicy(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ZonePlacementPolicy?(string value) => value == null ? null : new ZonePlacementPolicy(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ZonePlacementPolicy other && Equals(other); + + /// + public bool Equals(ZonePlacementPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..a969da5f965c --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.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 PrivateEndpointConnectionResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new PrivateEndpointConnectionResourceData(); + + /// 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. + PrivateEndpointConnectionResourceData 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. + PrivateEndpointConnectionResourceData 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/PrivateEndpointConnectionResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs new file mode 100644 index 000000000000..553ccba3f8f8 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.HorizonDB +{ + /// + /// A class representing a PrivateEndpointConnectionResource 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 GetPrivateEndpointConnectionResources method. + /// + public partial class PrivateEndpointConnectionResource : ArmResource + { + private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; + private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; + private readonly PrivateEndpointConnectionResourceData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters/privateEndpointConnections"; + + /// Initializes a new instance of PrivateEndpointConnectionResource for mocking. + protected PrivateEndpointConnectionResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal PrivateEndpointConnectionResource(ArmClient client, PrivateEndpointConnectionResourceData 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 PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string privateEndpointConnectionResourceApiVersion); + _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); + _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "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 PrivateEndpointConnectionResourceData 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. + /// The privateEndpointConnectionName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}"; + 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), id); + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_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 = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs new file mode 100644 index 000000000000..c9d458d37562 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs @@ -0,0 +1,463 @@ +// 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; + +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 GetPrivateEndpointConnectionResources method from an instance of . + /// + public partial class PrivateEndpointConnectionResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; + private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; + + /// Initializes a new instance of PrivateEndpointConnectionResourceCollection for mocking. + protected PrivateEndpointConnectionResourceCollection() + { + } + + /// 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 PrivateEndpointConnectionResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(PrivateEndpointConnectionResource.ResourceType, out string privateEndpointConnectionResourceApiVersion); + _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", PrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); + _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "2026-01-20-preview"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != HorizonDbClusterResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, HorizonDbClusterResource.ResourceType), id); + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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> GetAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a private endpoint connection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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 Response Get(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists private endpoint connections in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_List. + /// + /// + /// 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 HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new PrivateEndpointConnectionResource(Client, data)); + } + + /// + /// Lists private endpoint connections in a HorizonDb cluster. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_List. + /// + /// + /// 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 HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new PrivateEndpointConnectionResource(Client, data)); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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> ExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)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}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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 Response Exists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)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}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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> GetIfExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(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}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// HorizonDbPrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2026-01-20-preview. + /// + /// + /// + /// 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 NullableResponse GetIfExists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _horizonDbPrivateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(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/PrivateEndpointConnectionResourceData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs new file mode 100644 index 000000000000..a55b077402e6 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs @@ -0,0 +1,184 @@ +// 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 +{ + /// A private endpoint connection resource. + public partial class PrivateEndpointConnectionResourceData : ResourceData, IJsonModel + { + /// 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 DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceData)} 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(PrivateEndpointConnectionResourceData)} 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. + PrivateEndpointConnectionResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static PrivateEndpointConnectionResourceData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePrivateEndpointConnectionResourceData(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(PrivateEndpointConnectionResourceData)} 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. + PrivateEndpointConnectionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)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(PrivateEndpointConnectionResourceData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpointConnectionResourceData(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(); + PrivateEndpointConnectionProperties 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("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionResourceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs new file mode 100644 index 000000000000..0306dc7c5095 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs @@ -0,0 +1,43 @@ +// 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 +{ + /// A private endpoint connection resource. + public partial class PrivateEndpointConnectionResourceData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + internal PrivateEndpointConnectionResourceData() + { + } + + /// 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. + /// The private endpoint connection properties. + internal PrivateEndpointConnectionResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The private endpoint connection properties. + public PrivateEndpointConnectionProperties Properties { get; } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs new file mode 100644 index 000000000000..8f52149177a9 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ProviderConstants.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal static partial class ProviderConstants + { + /// Gets the DefaultProviderNamespace. + public static string DefaultProviderNamespace { get; } = ClientDiagnostics.GetResourceProviderNamespace(typeof(ProviderConstants).Assembly); + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs new file mode 100644 index 000000000000..a1a6b20da1f0 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbClustersRestOperations.cs @@ -0,0 +1,221 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbClusters + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbClusters for mocking. + protected HorizonDbClusters() + { + } + + /// Initializes a new instance of HorizonDbClusters. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbClusters(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetByResourceGroupRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetByResourceGroupRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetBySubscriptionRequest(Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs new file mode 100644 index 000000000000..ea6beb038b94 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbFirewallRulesRestOperations.cs @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbFirewallRules + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbFirewallRules for mocking. + protected HorizonDbFirewallRules() + { + } + + /// Initializes a new instance of HorizonDbFirewallRules. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbFirewallRules(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs new file mode 100644 index 000000000000..31bf4e001b95 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbParameterGroupsRestOperations.cs @@ -0,0 +1,317 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbParameterGroups + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbParameterGroups for mocking. + protected HorizonDbParameterGroups() + { + } + + /// Initializes a new instance of HorizonDbParameterGroups. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbParameterGroups(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetByResourceGroupRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetByResourceGroupRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetBySubscriptionRequest(Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subscriptionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetConnectionsRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + uri.AppendPath("/connections", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetConnectionsRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetVersionsRequest(Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/parameterGroups/", false); + uri.AppendPath(parameterGroupName, true); + uri.AppendPath("/versions", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (version != null) + { + uri.AppendQuery("version", TypeFormatters.ConvertToString(version), true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetVersionsRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs new file mode 100644 index 000000000000..97ecff7216b7 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPoolsRestOperations.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbPools + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbPools for mocking. + protected HorizonDbPools() + { + } + + /// Initializes a new instance of HorizonDbPools. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbPools(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs new file mode 100644 index 000000000000..0e65902946f1 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateEndpointConnectionsRestOperations.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbPrivateEndpointConnections + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbPrivateEndpointConnections for mocking. + protected HorizonDbPrivateEndpointConnections() + { + } + + /// Initializes a new instance of HorizonDbPrivateEndpointConnections. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbPrivateEndpointConnections(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string privateEndpointConnectionName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string privateEndpointConnectionName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs new file mode 100644 index 000000000000..cdceb0b3ac22 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbPrivateLinkResourcesRestOperations.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbPrivateLinkResources + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbPrivateLinkResources for mocking. + protected HorizonDbPrivateLinkResources() + { + } + + /// Initializes a new instance of HorizonDbPrivateLinkResources. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbPrivateLinkResources(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string groupName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs new file mode 100644 index 000000000000..02679220b298 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/RestOperations/HorizonDbReplicasRestOperations.cs @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.HorizonDB +{ + internal partial class HorizonDbReplicas + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of HorizonDbReplicas for mocking. + protected HorizonDbReplicas() + { + } + + /// Initializes a new instance of HorizonDbReplicas. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal HorizonDbReplicas(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAllRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateNextGetAllRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + if (nextPage.IsAbsoluteUri) + { + uri.Reset(nextPage); + } + else + { + uri.Reset(new Uri(_endpoint, nextPage)); + } + if (_apiVersion != null) + { + uri.UpdateQuery("api-version", _apiVersion); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HorizonDb/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} From 0363bf38a0cbdb15bb91cfb5971a23cb984da21c Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 29 Apr 2026 09:13:28 +0800 Subject: [PATCH 7/7] Refresh API listings Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- ...Azure.ResourceManager.HorizonDB.net10.0.cs | 1140 ++++++++--------- .../Azure.ResourceManager.HorizonDB.net8.0.cs | 1140 ++++++++--------- ...esourceManager.HorizonDB.netstandard2.0.cs | 1140 ++++++++--------- 3 files changed, 1710 insertions(+), 1710 deletions(-) diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs index 3f6fff481d49..7ec1ec402acf 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net10.0.cs @@ -1,807 +1,807 @@ -namespace Azure.ResourceManager.HorizonDb +namespace Azure.ResourceManager.HorizonDB { - public partial class AzureResourceManagerHorizonDbContext : System.ClientModel.Primitives.ModelReaderWriterContext + public partial class AzureResourceManagerHorizonDBContext : System.ClientModel.Primitives.ModelReaderWriterContext { - internal AzureResourceManagerHorizonDbContext() { } - public static Azure.ResourceManager.HorizonDb.AzureResourceManagerHorizonDbContext Default { get { throw null; } } + internal AzureResourceManagerHorizonDBContext() { } + public static Azure.ResourceManager.HorizonDB.AzureResourceManagerHorizonDBContext Default { get { throw null; } } protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } - public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbClusterCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDB.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDB.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbClusterResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } - public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } - public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public static partial class HorizonDbExtensions + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } + public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } + public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class HorizonDBExtensions { public static Azure.ResourceManager.ArmOperation Delete(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task DeleteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbFirewallRuleCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbFirewallRuleData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbFirewallRuleResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbParameterGroupCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbParameterGroupResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbPoolCollection() { } public virtual Azure.Response Exists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPoolData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties Properties { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbPoolResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } - public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } + public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbPrivateLinkResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbPrivateLinkResourceCollection() { } public virtual Azure.Response Exists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPrivateLinkResourceData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbReplicaCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDB.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDB.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbReplicaResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected PrivateEndpointConnectionResource() { } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected PrivateEndpointConnectionResourceCollection() { } public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal PrivateEndpointConnectionResourceData() { } - public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace Azure.ResourceManager.HorizonDb.Mocking +namespace Azure.ResourceManager.HorizonDB.Mocking { - public partial class MockableHorizonDbArmClient : Azure.ResourceManager.ArmResource + public partial class MockableHorizonDBArmClient : Azure.ResourceManager.ArmResource { - protected MockableHorizonDbArmClient() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + protected MockableHorizonDBArmClient() { } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } } - public partial class MockableHorizonDbResourceGroupResource : Azure.ResourceManager.ArmResource + public partial class MockableHorizonDBResourceGroupResource : Azure.ResourceManager.ArmResource { - protected MockableHorizonDbResourceGroupResource() { } + protected MockableHorizonDBResourceGroupResource() { } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } - public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MockableHorizonDbSubscriptionResource : Azure.ResourceManager.ArmResource - { - protected MockableHorizonDbSubscriptionResource() { } - public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } + public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableHorizonDBSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDBSubscriptionResource() { } + public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } -namespace Azure.ResourceManager.HorizonDb.Models +namespace Azure.ResourceManager.HorizonDB.Models { - public static partial class ArmHorizonDbModelFactory - { - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?), Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModePool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDb.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDb.Models.ReplicaRole?), Azure.ResourceManager.HorizonDb.Models.State? status = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static partial class ArmHorizonDBModelFactory + { + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDB.Models.State? state = default(Azure.ResourceManager.HorizonDB.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?), Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDB.Models.State? state = default(Azure.ResourceManager.HorizonDB.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDB.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDB.Models.CreateModePool?), Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection HorizonDBPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties HorizonDBPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDB.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDB.Models.ReplicaRole?), Azure.ResourceManager.HorizonDB.Models.State? status = default(Azure.ResourceManager.HorizonDB.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateModeCluster : System.IEquatable + public readonly partial struct CreateModeCluster : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CreateModeCluster(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Create { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Update { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModeCluster (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateModePool : System.IEquatable + public readonly partial struct CreateModePool : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CreateModePool(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Create { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Update { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModePool other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.CreateModePool Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModePool Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.CreateModePool other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.CreateModePool left, Azure.ResourceManager.HorizonDB.Models.CreateModePool right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModePool (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModePool? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.CreateModePool left, Azure.ResourceManager.HorizonDB.Models.CreateModePool right) { throw null; } public override string ToString() { throw null; } } - public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterParameterGroupConnectionProperties() { } public bool? ApplyImmediately { get { throw null; } set { } } public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } public string SyncStatus { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterPatch() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterProperties(string administratorLogin) { } public string AdministratorLogin { get { throw null; } set { } } public string AdministratorLoginPassword { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } public System.DateTimeOffset? PointInTimeUTC { get { throw null; } set { } } public string PoolName { get { throw null; } set { } } public string ProcessorType { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } public string ReadonlyEndpoint { get { throw null; } } public int? ReplicaCount { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceClusterResourceId { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.State? State { get { throw null; } } public int? VCores { get { throw null; } set { } } public string Version { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterPropertiesForPatchUpdate() { } public string AdministratorLoginPassword { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } public int? VCores { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) { } public string Description { get { throw null; } set { } } public string EndIpAddress { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public string StartIpAddress { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbParameterGroupConnectionProperties() { } public Azure.Core.ResourceIdentifier Id { get { throw null; } } public string Name { get { throw null; } } public string Type { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupPatch() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupProperties() { } public bool? ApplyImmediately { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList Parameters { get { throw null; } } + public System.Collections.Generic.IList Parameters { get { throw null; } } public int? PgVersion { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public int? Version { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupPropertiesForPatchUpdate() { } public bool? ApplyImmediately { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public System.Collections.Generic.IList Parameters { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPoolProperties() { } - public Azure.ResourceManager.HorizonDb.Models.CreateModePool? CreateMode { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.CreateModePool? CreateMode { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public int? ReplicaCount { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.State? State { get { throw null; } } public string Version { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal HorizonDbPrivateEndpointConnection() { } - public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + internal HorizonDBPrivateEndpointConnection() { } + public Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : System.IEquatable + public readonly partial struct HorizonDBPrivateEndpointConnectionProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HorizonDbPrivateEndpointConnectionProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState other) { throw null; } + public HorizonDBPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : System.IEquatable + public readonly partial struct HorizonDBPrivateEndpointServiceConnectionStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HorizonDbPrivateEndpointServiceConnectionStatus(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus other) { throw null; } + public HorizonDBPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class HorizonDbPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal HorizonDbPrivateLinkResourceProperties() { } + internal HorizonDBPrivateLinkResourceProperties() { } public string GroupId { get { throw null; } } public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HorizonDbPrivateLinkServiceConnectionState() { } + public HorizonDBPrivateLinkServiceConnectionState() { } public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaPatch() { } - public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaProperties() { } public string AvailabilityZone { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? Role { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.State? Status { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ReplicaRole? Role { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.State? Status { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public OptionalPropertiesUpdateableProperties() { } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ParameterProperties() { } public string AllowedValues { get { throw null; } } @@ -813,139 +813,139 @@ public ParameterProperties() { } public string Name { get { throw null; } set { } } public string Unit { get { throw null; } } public string Value { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal PrivateEndpointConnectionProperties() { } public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PrivateEndpointConnectionUpdate() { } - public Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable + public readonly partial struct ProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState InProgress { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Provisioning { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ProvisioningState other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ProvisioningState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ProvisioningState left, Azure.ResourceManager.HorizonDB.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ProvisioningState left, Azure.ResourceManager.HorizonDB.Models.ProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct PublicNetworkAccessState : System.IEquatable + public readonly partial struct PublicNetworkAccessState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public PublicNetworkAccessState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Disabled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ReplicaRole : System.IEquatable + public readonly partial struct ReplicaRole : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ReplicaRole(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole Read { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ReplicaRole other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ReplicaRole Read { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ReplicaRole ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ReplicaRole other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ReplicaRole left, Azure.ResourceManager.HorizonDB.Models.ReplicaRole right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ReplicaRole (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ReplicaRole? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ReplicaRole left, Azure.ResourceManager.HorizonDB.Models.ReplicaRole right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct State : System.IEquatable + public readonly partial struct State : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public State(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.State Disabled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Dropping { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Healthy { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Ready { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Starting { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Stopped { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Stopping { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.State other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.State Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Dropping { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Healthy { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Ready { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Starting { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Stopped { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Stopping { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.State other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.State (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.State? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.State left, Azure.ResourceManager.HorizonDB.Models.State right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.State (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.State? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.State left, Azure.ResourceManager.HorizonDB.Models.State right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ZonePlacementPolicy : System.IEquatable + public readonly partial struct ZonePlacementPolicy : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ZonePlacementPolicy(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy BestEffort { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy Strict { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy BestEffort { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy Strict { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy right) { throw null; } public override string ToString() { throw null; } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs index 3f6fff481d49..7ec1ec402acf 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.net8.0.cs @@ -1,807 +1,807 @@ -namespace Azure.ResourceManager.HorizonDb +namespace Azure.ResourceManager.HorizonDB { - public partial class AzureResourceManagerHorizonDbContext : System.ClientModel.Primitives.ModelReaderWriterContext + public partial class AzureResourceManagerHorizonDBContext : System.ClientModel.Primitives.ModelReaderWriterContext { - internal AzureResourceManagerHorizonDbContext() { } - public static Azure.ResourceManager.HorizonDb.AzureResourceManagerHorizonDbContext Default { get { throw null; } } + internal AzureResourceManagerHorizonDBContext() { } + public static Azure.ResourceManager.HorizonDB.AzureResourceManagerHorizonDBContext Default { get { throw null; } } protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } - public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbClusterCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDB.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDB.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbClusterResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } - public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } - public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public static partial class HorizonDbExtensions + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } + public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } + public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class HorizonDBExtensions { public static Azure.ResourceManager.ArmOperation Delete(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task DeleteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbFirewallRuleCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbFirewallRuleData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbFirewallRuleResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbParameterGroupCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbParameterGroupResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbPoolCollection() { } public virtual Azure.Response Exists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPoolData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties Properties { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbPoolResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } - public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } + public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbPrivateLinkResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbPrivateLinkResourceCollection() { } public virtual Azure.Response Exists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPrivateLinkResourceData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbReplicaCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDB.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDB.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbReplicaResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected PrivateEndpointConnectionResource() { } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected PrivateEndpointConnectionResourceCollection() { } public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal PrivateEndpointConnectionResourceData() { } - public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace Azure.ResourceManager.HorizonDb.Mocking +namespace Azure.ResourceManager.HorizonDB.Mocking { - public partial class MockableHorizonDbArmClient : Azure.ResourceManager.ArmResource + public partial class MockableHorizonDBArmClient : Azure.ResourceManager.ArmResource { - protected MockableHorizonDbArmClient() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + protected MockableHorizonDBArmClient() { } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } } - public partial class MockableHorizonDbResourceGroupResource : Azure.ResourceManager.ArmResource + public partial class MockableHorizonDBResourceGroupResource : Azure.ResourceManager.ArmResource { - protected MockableHorizonDbResourceGroupResource() { } + protected MockableHorizonDBResourceGroupResource() { } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } - public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MockableHorizonDbSubscriptionResource : Azure.ResourceManager.ArmResource - { - protected MockableHorizonDbSubscriptionResource() { } - public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } + public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableHorizonDBSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDBSubscriptionResource() { } + public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } -namespace Azure.ResourceManager.HorizonDb.Models +namespace Azure.ResourceManager.HorizonDB.Models { - public static partial class ArmHorizonDbModelFactory - { - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?), Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModePool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDb.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDb.Models.ReplicaRole?), Azure.ResourceManager.HorizonDb.Models.State? status = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static partial class ArmHorizonDBModelFactory + { + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDB.Models.State? state = default(Azure.ResourceManager.HorizonDB.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?), Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDB.Models.State? state = default(Azure.ResourceManager.HorizonDB.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDB.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDB.Models.CreateModePool?), Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection HorizonDBPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties HorizonDBPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDB.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDB.Models.ReplicaRole?), Azure.ResourceManager.HorizonDB.Models.State? status = default(Azure.ResourceManager.HorizonDB.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateModeCluster : System.IEquatable + public readonly partial struct CreateModeCluster : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CreateModeCluster(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Create { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Update { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModeCluster (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateModePool : System.IEquatable + public readonly partial struct CreateModePool : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CreateModePool(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Create { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Update { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModePool other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.CreateModePool Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModePool Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.CreateModePool other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.CreateModePool left, Azure.ResourceManager.HorizonDB.Models.CreateModePool right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModePool (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModePool? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.CreateModePool left, Azure.ResourceManager.HorizonDB.Models.CreateModePool right) { throw null; } public override string ToString() { throw null; } } - public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterParameterGroupConnectionProperties() { } public bool? ApplyImmediately { get { throw null; } set { } } public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } public string SyncStatus { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterPatch() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterProperties(string administratorLogin) { } public string AdministratorLogin { get { throw null; } set { } } public string AdministratorLoginPassword { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } public System.DateTimeOffset? PointInTimeUTC { get { throw null; } set { } } public string PoolName { get { throw null; } set { } } public string ProcessorType { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } public string ReadonlyEndpoint { get { throw null; } } public int? ReplicaCount { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceClusterResourceId { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.State? State { get { throw null; } } public int? VCores { get { throw null; } set { } } public string Version { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterPropertiesForPatchUpdate() { } public string AdministratorLoginPassword { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } public int? VCores { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) { } public string Description { get { throw null; } set { } } public string EndIpAddress { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public string StartIpAddress { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbParameterGroupConnectionProperties() { } public Azure.Core.ResourceIdentifier Id { get { throw null; } } public string Name { get { throw null; } } public string Type { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupPatch() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupProperties() { } public bool? ApplyImmediately { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList Parameters { get { throw null; } } + public System.Collections.Generic.IList Parameters { get { throw null; } } public int? PgVersion { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public int? Version { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupPropertiesForPatchUpdate() { } public bool? ApplyImmediately { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public System.Collections.Generic.IList Parameters { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPoolProperties() { } - public Azure.ResourceManager.HorizonDb.Models.CreateModePool? CreateMode { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.CreateModePool? CreateMode { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public int? ReplicaCount { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.State? State { get { throw null; } } public string Version { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal HorizonDbPrivateEndpointConnection() { } - public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + internal HorizonDBPrivateEndpointConnection() { } + public Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : System.IEquatable + public readonly partial struct HorizonDBPrivateEndpointConnectionProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HorizonDbPrivateEndpointConnectionProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState other) { throw null; } + public HorizonDBPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : System.IEquatable + public readonly partial struct HorizonDBPrivateEndpointServiceConnectionStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HorizonDbPrivateEndpointServiceConnectionStatus(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus other) { throw null; } + public HorizonDBPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class HorizonDbPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal HorizonDbPrivateLinkResourceProperties() { } + internal HorizonDBPrivateLinkResourceProperties() { } public string GroupId { get { throw null; } } public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HorizonDbPrivateLinkServiceConnectionState() { } + public HorizonDBPrivateLinkServiceConnectionState() { } public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaPatch() { } - public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaProperties() { } public string AvailabilityZone { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? Role { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.State? Status { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ReplicaRole? Role { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.State? Status { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public OptionalPropertiesUpdateableProperties() { } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ParameterProperties() { } public string AllowedValues { get { throw null; } } @@ -813,139 +813,139 @@ public ParameterProperties() { } public string Name { get { throw null; } set { } } public string Unit { get { throw null; } } public string Value { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal PrivateEndpointConnectionProperties() { } public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PrivateEndpointConnectionUpdate() { } - public Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable + public readonly partial struct ProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState InProgress { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Provisioning { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ProvisioningState other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ProvisioningState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ProvisioningState left, Azure.ResourceManager.HorizonDB.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ProvisioningState left, Azure.ResourceManager.HorizonDB.Models.ProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct PublicNetworkAccessState : System.IEquatable + public readonly partial struct PublicNetworkAccessState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public PublicNetworkAccessState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Disabled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ReplicaRole : System.IEquatable + public readonly partial struct ReplicaRole : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ReplicaRole(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole Read { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ReplicaRole other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ReplicaRole Read { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ReplicaRole ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ReplicaRole other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ReplicaRole left, Azure.ResourceManager.HorizonDB.Models.ReplicaRole right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ReplicaRole (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ReplicaRole? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ReplicaRole left, Azure.ResourceManager.HorizonDB.Models.ReplicaRole right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct State : System.IEquatable + public readonly partial struct State : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public State(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.State Disabled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Dropping { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Healthy { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Ready { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Starting { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Stopped { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Stopping { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.State other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.State Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Dropping { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Healthy { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Ready { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Starting { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Stopped { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Stopping { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.State other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.State (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.State? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.State left, Azure.ResourceManager.HorizonDB.Models.State right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.State (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.State? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.State left, Azure.ResourceManager.HorizonDB.Models.State right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ZonePlacementPolicy : System.IEquatable + public readonly partial struct ZonePlacementPolicy : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ZonePlacementPolicy(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy BestEffort { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy Strict { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy BestEffort { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy Strict { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy right) { throw null; } public override string ToString() { throw null; } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs index 3f6fff481d49..7ec1ec402acf 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/api/Azure.ResourceManager.HorizonDB.netstandard2.0.cs @@ -1,807 +1,807 @@ -namespace Azure.ResourceManager.HorizonDb +namespace Azure.ResourceManager.HorizonDB { - public partial class AzureResourceManagerHorizonDbContext : System.ClientModel.Primitives.ModelReaderWriterContext + public partial class AzureResourceManagerHorizonDBContext : System.ClientModel.Primitives.ModelReaderWriterContext { - internal AzureResourceManagerHorizonDbContext() { } - public static Azure.ResourceManager.HorizonDb.AzureResourceManagerHorizonDbContext Default { get { throw null; } } + internal AzureResourceManagerHorizonDBContext() { } + public static Azure.ResourceManager.HorizonDB.AzureResourceManagerHorizonDBContext Default { get { throw null; } } protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } - public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbClusterCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDb.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDB.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.HorizonDB.HorizonDbClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbClusterResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } - public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } - public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public static partial class HorizonDbExtensions + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbPool(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolCollection GetHorizonDbPools() { throw null; } + public virtual Azure.Response GetHorizonDbPrivateLinkResource(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbPrivateLinkResourceAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceCollection GetHorizonDbPrivateLinkResources() { throw null; } + public virtual Azure.Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class HorizonDBExtensions { public static Azure.ResourceManager.ArmOperation Delete(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task DeleteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public static Azure.Response GetHorizonDbCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterResource GetHorizonDbClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterCollection GetHorizonDbClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHorizonDbParameterGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHorizonDbParameterGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPoolResource GetHorizonDbPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbReplicaResource GetHorizonDbReplicaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ArmOperation Update(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbFirewallRuleCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbFirewallRuleData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbFirewallRuleResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string firewallRuleName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbParameterGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbParameterGroupCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string parameterGroupName, Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbParameterGroupResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string parameterGroupName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConnections(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConnectionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetVersions(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetVersionsAsync(int? version = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HorizonDbPoolCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbPoolCollection() { } public virtual Azure.Response Exists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPoolData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties Properties { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbPoolResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } - public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbFirewallRule(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbFirewallRuleAsync(string firewallRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleCollection GetHorizonDbFirewallRules() { throw null; } + public virtual Azure.Response GetHorizonDbReplica(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbReplicaAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaCollection GetHorizonDbReplicas() { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPoolData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class HorizonDbPrivateLinkResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbPrivateLinkResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string groupName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbPrivateLinkResourceCollection() { } public virtual Azure.Response Exists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPrivateLinkResourceData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HorizonDbReplicaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected HorizonDbReplicaCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDb.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDB.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.HorizonDB.HorizonDbReplicaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string replicaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaData() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties Properties { get { throw null; } set { } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected HorizonDbReplicaResource() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string poolName, string replicaName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.HorizonDbReplicaData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; protected PrivateEndpointConnectionResource() { } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData Data { get { throw null; } } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected PrivateEndpointConnectionResourceCollection() { } public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal PrivateEndpointConnectionResourceData() { } - public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace Azure.ResourceManager.HorizonDb.Mocking +namespace Azure.ResourceManager.HorizonDB.Mocking { - public partial class MockableHorizonDbArmClient : Azure.ResourceManager.ArmResource + public partial class MockableHorizonDBArmClient : Azure.ResourceManager.ArmResource { - protected MockableHorizonDbArmClient() { } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } + protected MockableHorizonDBArmClient() { } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterResource GetHorizonDbClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPoolResource GetHorizonDbPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbReplicaResource GetHorizonDbReplicaResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } } - public partial class MockableHorizonDbResourceGroupResource : Azure.ResourceManager.ArmResource + public partial class MockableHorizonDBResourceGroupResource : Azure.ResourceManager.ArmResource { - protected MockableHorizonDbResourceGroupResource() { } + protected MockableHorizonDBResourceGroupResource() { } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } - public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MockableHorizonDbSubscriptionResource : Azure.ResourceManager.ArmResource - { - protected MockableHorizonDbSubscriptionResource() { } - public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHorizonDbCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbClusterCollection GetHorizonDbClusters() { throw null; } + public virtual Azure.Response GetHorizonDbParameterGroup(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupCollection GetHorizonDbParameterGroups() { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableHorizonDBSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableHorizonDBSubscriptionResource() { } + public virtual Azure.Pageable GetHorizonDbClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHorizonDbParameterGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHorizonDbParameterGroupsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } -namespace Azure.ResourceManager.HorizonDb.Models +namespace Azure.ResourceManager.HorizonDB.Models { - public static partial class ArmHorizonDbModelFactory - { - public static Azure.ResourceManager.HorizonDb.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?), Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDb.Models.State? state = default(Azure.ResourceManager.HorizonDb.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDb.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDb.Models.CreateModePool?), Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties properties = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDb.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDb.Models.ReplicaRole?), Azure.ResourceManager.HorizonDb.Models.State? status = default(Azure.ResourceManager.HorizonDb.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDb.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.ProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HorizonDb.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static partial class ArmHorizonDBModelFactory + { + public static Azure.ResourceManager.HorizonDB.HorizonDbClusterData HorizonDbClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(Azure.Core.ResourceIdentifier id = null, string syncStatus = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch HorizonDbClusterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = null, string administratorLoginPassword = null, string version = null, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? createMode = default(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster?), System.DateTimeOffset? pointInTimeUTC = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier sourceClusterResourceId = null, string poolName = null, int? replicaCount = default(int?), int? vCores = default(int?), string processorType = null, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? publicNetworkAccess = default(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState?), Azure.ResourceManager.HorizonDB.Models.State? state = default(Azure.ResourceManager.HorizonDB.Models.State?), string fullyQualifiedDomainName = null, string readonlyEndpoint = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?), Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy?), Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties parameterGroup = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbFirewallRuleData HorizonDbFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = null, string endIpAddress = null, string description = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = null, Azure.Core.ResourceIdentifier id = null, string type = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbParameterGroupData HorizonDbParameterGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(System.Collections.Generic.IEnumerable parameters = null, string description = null, int? pgVersion = default(int?), int? version = default(int?), bool? applyImmediately = default(bool?), Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(System.Collections.Generic.IEnumerable parameters = null, string description = null, bool? applyImmediately = default(bool?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPoolData HorizonDbPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties HorizonDbPoolProperties(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.HorizonDB.Models.State? state = default(Azure.ResourceManager.HorizonDB.Models.State?), int? replicaCount = default(int?), string version = null, Azure.ResourceManager.HorizonDB.Models.CreateModePool? createMode = default(Azure.ResourceManager.HorizonDB.Models.CreateModePool?), Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection HorizonDBPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties HorizonDBPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.HorizonDbReplicaData HorizonDbReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties properties = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties HorizonDbReplicaProperties(Azure.ResourceManager.HorizonDB.Models.ReplicaRole? role = default(Azure.ResourceManager.HorizonDB.Models.ReplicaRole?), Azure.ResourceManager.HorizonDB.Models.State? status = default(Azure.ResourceManager.HorizonDB.Models.State?), string fullyQualifiedDomainName = null, string availabilityZone = null, Azure.ResourceManager.HorizonDB.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ParameterProperties ParameterProperties(string name = null, string description = null, string value = null, string dataType = null, string allowedValues = null, bool? isDynamic = default(bool?), bool? isReadOnly = default(bool?), System.Uri documentationLink = null, string unit = null) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(System.Collections.Generic.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HorizonDB.PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateModeCluster : System.IEquatable + public readonly partial struct CreateModeCluster : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CreateModeCluster(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Create { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModeCluster Update { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster PointInTimeRestore { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModeCluster Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDb.Models.CreateModeCluster right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModeCluster (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.CreateModeCluster left, Azure.ResourceManager.HorizonDB.Models.CreateModeCluster right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateModePool : System.IEquatable + public readonly partial struct CreateModePool : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CreateModePool(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Create { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.CreateModePool Update { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.CreateModePool other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.CreateModePool Create { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.CreateModePool Update { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.CreateModePool other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.CreateModePool? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.CreateModePool left, Azure.ResourceManager.HorizonDb.Models.CreateModePool right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.CreateModePool left, Azure.ResourceManager.HorizonDB.Models.CreateModePool right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModePool (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.CreateModePool? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.CreateModePool left, Azure.ResourceManager.HorizonDB.Models.CreateModePool right) { throw null; } public override string ToString() { throw null; } } - public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterParameterGroupConnectionProperties() { } public bool? ApplyImmediately { get { throw null; } set { } } public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } public string SyncStatus { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterPatch() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterProperties(string administratorLogin) { } public string AdministratorLogin { get { throw null; } set { } } public string AdministratorLoginPassword { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.CreateModeCluster? CreateMode { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } public System.DateTimeOffset? PointInTimeUTC { get { throw null; } set { } } public string PoolName { get { throw null; } set { } } public string ProcessorType { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? PublicNetworkAccess { get { throw null; } } public string ReadonlyEndpoint { get { throw null; } } public int? ReplicaCount { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceClusterResourceId { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.State? State { get { throw null; } } public int? VCores { get { throw null; } set { } } public string Version { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbClusterPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbClusterPropertiesForPatchUpdate() { } public string AdministratorLoginPassword { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterParameterGroupConnectionProperties ParameterGroup { get { throw null; } set { } } public int? VCores { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbClusterPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbFirewallRuleProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress) { } public string Description { get { throw null; } set { } } public string EndIpAddress { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public string StartIpAddress { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbFirewallRuleProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbParameterGroupConnectionProperties() { } public Azure.Core.ResourceIdentifier Id { get { throw null; } } public string Name { get { throw null; } } public string Type { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupPatch() { } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupProperties() { } public bool? ApplyImmediately { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList Parameters { get { throw null; } } + public System.Collections.Generic.IList Parameters { get { throw null; } } public int? PgVersion { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public int? Version { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbParameterGroupPropertiesForPatchUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbParameterGroupPropertiesForPatchUpdate() { } public bool? ApplyImmediately { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public System.Collections.Generic.IList Parameters { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbParameterGroupPropertiesForPatchUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbPoolProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal HorizonDbPoolProperties() { } - public Azure.ResourceManager.HorizonDb.Models.CreateModePool? CreateMode { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.CreateModePool? CreateMode { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } public int? ReplicaCount { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.State? State { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.State? State { get { throw null; } } public string Version { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbPoolProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal HorizonDbPrivateEndpointConnection() { } - public Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } + internal HorizonDBPrivateEndpointConnection() { } + public Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties Properties { get { throw null; } } protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HorizonDbPrivateEndpointConnectionProvisioningState : System.IEquatable + public readonly partial struct HorizonDBPrivateEndpointConnectionProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HorizonDbPrivateEndpointConnectionProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState other) { throw null; } + public HorizonDBPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HorizonDbPrivateEndpointServiceConnectionStatus : System.IEquatable + public readonly partial struct HorizonDBPrivateEndpointServiceConnectionStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HorizonDbPrivateEndpointServiceConnectionStatus(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus other) { throw null; } + public HorizonDBPrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class HorizonDbPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateLinkResourceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal HorizonDbPrivateLinkResourceProperties() { } + internal HorizonDBPrivateLinkResourceProperties() { } public string GroupId { get { throw null; } } public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkResourceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDBPrivateLinkServiceConnectionState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HorizonDbPrivateLinkServiceConnectionState() { } + public HorizonDBPrivateLinkServiceConnectionState() { } public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaPatch() { } - public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HorizonDbReplicaProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public HorizonDbReplicaProperties() { } public string AvailabilityZone { get { throw null; } set { } } public string FullyQualifiedDomainName { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.ReplicaRole? Role { get { throw null; } set { } } - public Azure.ResourceManager.HorizonDb.Models.State? Status { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.ReplicaRole? Role { get { throw null; } set { } } + public Azure.ResourceManager.HorizonDB.Models.State? Status { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.HorizonDbReplicaProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class OptionalPropertiesUpdateableProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public OptionalPropertiesUpdateableProperties() { } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class ParameterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ParameterProperties() { } public string AllowedValues { get { throw null; } } @@ -813,139 +813,139 @@ public ParameterProperties() { } public string Name { get { throw null; } set { } } public string Unit { get { throw null; } } public string Value { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.ParameterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.ParameterProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.ParameterProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.ParameterProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal PrivateEndpointConnectionProperties() { } public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } - public Azure.ResourceManager.HorizonDb.Models.HorizonDbPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } } + public Azure.ResourceManager.HorizonDB.Models.HorizonDBPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class PrivateEndpointConnectionUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PrivateEndpointConnectionUpdate() { } - public Azure.ResourceManager.HorizonDb.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public Azure.ResourceManager.HorizonDB.Models.OptionalPropertiesUpdateableProperties Properties { get { throw null; } set { } } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HorizonDb.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HorizonDB.Models.PrivateEndpointConnectionUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable + public readonly partial struct ProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState InProgress { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Provisioning { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ProvisioningState other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState InProgress { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ProvisioningState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ProvisioningState left, Azure.ResourceManager.HorizonDb.Models.ProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ProvisioningState left, Azure.ResourceManager.HorizonDB.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ProvisioningState left, Azure.ResourceManager.HorizonDB.Models.ProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct PublicNetworkAccessState : System.IEquatable + public readonly partial struct PublicNetworkAccessState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public PublicNetworkAccessState(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Disabled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDb.Models.PublicNetworkAccessState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState left, Azure.ResourceManager.HorizonDB.Models.PublicNetworkAccessState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ReplicaRole : System.IEquatable + public readonly partial struct ReplicaRole : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ReplicaRole(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole Read { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ReplicaRole ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ReplicaRole other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ReplicaRole Read { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ReplicaRole ReadWrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ReplicaRole other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ReplicaRole? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ReplicaRole left, Azure.ResourceManager.HorizonDb.Models.ReplicaRole right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ReplicaRole left, Azure.ResourceManager.HorizonDB.Models.ReplicaRole right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ReplicaRole (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ReplicaRole? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ReplicaRole left, Azure.ResourceManager.HorizonDB.Models.ReplicaRole right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct State : System.IEquatable + public readonly partial struct State : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public State(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.State Disabled { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Dropping { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Healthy { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Ready { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Starting { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Stopped { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Stopping { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.State Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.State other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.State Disabled { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Dropping { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Healthy { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Ready { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Starting { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Stopped { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Stopping { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.State Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.State other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.State (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.State? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.State left, Azure.ResourceManager.HorizonDb.Models.State right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.State left, Azure.ResourceManager.HorizonDB.Models.State right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.State (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.State? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.State left, Azure.ResourceManager.HorizonDB.Models.State right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ZonePlacementPolicy : System.IEquatable + public readonly partial struct ZonePlacementPolicy : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public ZonePlacementPolicy(string value) { throw null; } - public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy BestEffort { get { throw null; } } - public static Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy Strict { get { throw null; } } - public bool Equals(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy other) { throw null; } + public static Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy BestEffort { get { throw null; } } + public static Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy Strict { get { throw null; } } + public bool Equals(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy other) { throw null; } public override bool Equals(object obj) { throw null; } public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy (string value) { throw null; } - public static implicit operator Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDb.Models.ZonePlacementPolicy right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy (string value) { throw null; } + public static implicit operator Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy left, Azure.ResourceManager.HorizonDB.Models.ZonePlacementPolicy right) { throw null; } public override string ToString() { throw null; } } }