diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDBModelFactory.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDBModelFactory.cs index 1d50e42cac5f..0f0934df98a8 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDBModelFactory.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/ArmHorizonDBModelFactory.cs @@ -47,7 +47,7 @@ public static HorizonDbClusterData HorizonDbClusterData(ResourceIdentifier id = /// 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. + /// 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. @@ -61,14 +61,14 @@ public static HorizonDbClusterData HorizonDbClusterData(ResourceIdentifier id = /// 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) + public static HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = default, string administratorLoginPassword = default, string version = default, HorizonDbClusterCreateMode? createMode = default, DateTimeOffset? pointInTimeUtc = default, ResourceIdentifier sourceClusterResourceId = default, string poolName = default, int? replicaCount = default, int? vCores = default, string processorType = default, HorizonDbPublicNetworkAccessState? publicNetworkAccess = default, HorizonDbClusterState? state = default, string fullyQualifiedDomainName = default, string readonlyEndpoint = default, HorizonDbProvisioningState? provisioningState = default, HorizonDbZonePlacementPolicy? zonePlacementPolicy = default, HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default) { return new HorizonDbClusterProperties( administratorLogin, administratorLoginPassword, version, createMode, - pointInTimeUTC, + pointInTimeUtc, sourceClusterResourceId, poolName, replicaCount, @@ -135,7 +135,7 @@ public static HorizonDbPoolData HorizonDbPoolData(ResourceIdentifier id = defaul /// 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) + public static HorizonDbPoolProperties HorizonDbPoolProperties(AzureLocation? location = default, HorizonDbClusterState? state = default, int? replicaCount = default, string version = default, HorizonDbPoolCreateMode? createMode = default, HorizonDbProvisioningState? provisioningState = default) { return new HorizonDbPoolProperties( location, @@ -172,7 +172,7 @@ public static HorizonDbReplicaData HorizonDbReplicaData(ResourceIdentifier id = /// 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) + public static HorizonDbReplicaProperties HorizonDbReplicaProperties(HorizonDbReplicaRole? role = default, HorizonDbClusterState? status = default, string fullyQualifiedDomainName = default, string availabilityZone = default, HorizonDbProvisioningState? provisioningState = default) { return new HorizonDbReplicaProperties( role, @@ -207,7 +207,7 @@ public static HorizonDbFirewallRuleData HorizonDbFirewallRuleData(ResourceIdenti /// 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) + public static HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = default, string endIpAddress = default, string description = default, HorizonDbProvisioningState? provisioningState = default) { return new HorizonDbFirewallRuleProperties(startIpAddress, endIpAddress, description, provisioningState, additionalBinaryDataProperties: null); } @@ -218,10 +218,10 @@ public static HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(st /// 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) + /// A new instance for mocking. + public static HorizonDbPrivateEndpointConnectionData HorizonDbPrivateEndpointConnectionData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, HorizonDbPrivateEndpointConnectionProperties properties = default) { - return new PrivateEndpointConnectionResourceData( + return new HorizonDbPrivateEndpointConnectionData( id, name, resourceType, @@ -234,12 +234,12 @@ public static PrivateEndpointConnectionResourceData PrivateEndpointConnectionRes /// 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) + /// A new instance for mocking. + public static HorizonDbPrivateEndpointConnectionProperties HorizonDbPrivateEndpointConnectionProperties(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); + return new HorizonDbPrivateEndpointConnectionProperties(groupIds.ToList(), privateEndpointId is null ? default : new PrivateEndpoint(privateEndpointId, null), privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties: null); } /// The private endpoint connection resource. @@ -249,7 +249,7 @@ public static PrivateEndpointConnectionProperties PrivateEndpointConnectionPrope /// 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) + public static HorizonDBPrivateEndpointConnection HorizonDBPrivateEndpointConnection(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, HorizonDbPrivateEndpointConnectionProperties properties = default) { return new HorizonDBPrivateEndpointConnection( id, @@ -323,9 +323,9 @@ public static HorizonDbParameterGroupData HorizonDbParameterGroupData(ResourceId /// 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) + public static HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(IEnumerable parameters = default, string description = default, int? pgVersion = default, int? version = default, bool? applyImmediately = default, HorizonDbProvisioningState? provisioningState = default) { - parameters ??= new ChangeTrackingList(); + parameters ??= new ChangeTrackingList(); return new HorizonDbParameterGroupProperties( parameters.ToList(), @@ -347,10 +347,10 @@ public static HorizonDbParameterGroupProperties HorizonDbParameterGroupPropertie /// 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) + /// A new instance for mocking. + public static HorizonDbParameterProperties HorizonDbParameterProperties(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( + return new HorizonDbParameterProperties( name, description, value, @@ -379,9 +379,9 @@ public static HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(IDiction /// 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) + public static HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(IEnumerable parameters = default, string description = default, bool? applyImmediately = default) { - parameters ??= new ChangeTrackingList(); + parameters ??= new ChangeTrackingList(); return new HorizonDbParameterGroupPropertiesForPatchUpdate(parameters.ToList(), description, applyImmediately, additionalBinaryDataProperties: null); } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs index 26f1e9f0e374..a7500a97f6e9 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.HorizonDB { - internal partial class HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT : AsyncPageable + internal partial class HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT : AsyncPageable { private readonly HorizonDbPrivateEndpointConnections _client; private readonly Guid _subscriptionId; @@ -42,7 +42,7 @@ public HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT(Horizon /// 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) + public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; while (true) @@ -53,7 +53,7 @@ public override async IAsyncEnumerable.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response); + yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response); nextPage = result.NextLink; if (nextPage == null) { @@ -68,7 +68,7 @@ public override async IAsyncEnumerable 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"); + using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.GetAll"); scope.Start(); try { diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs index 43460e5a8659..e0b8c477ebf4 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HorizonDB { - internal partial class HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT : Pageable + internal partial class HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT : Pageable { private readonly HorizonDbPrivateEndpointConnections _client; private readonly Guid _subscriptionId; @@ -41,7 +41,7 @@ public HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT(HorizonDbPri /// 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) + public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; while (true) @@ -52,7 +52,7 @@ public override IEnumerable> AsPages yield break; } PrivateEndpointConnectionResourceListResult result = PrivateEndpointConnectionResourceListResult.FromResponse(response); - yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response); + yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response); nextPage = result.NextLink; if (nextPage == null) { @@ -67,7 +67,7 @@ public override IEnumerable> AsPages 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"); + using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.GetAll"); scope.Start(); try { diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDBExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDBExtensions.cs index dc663fed6e1d..0a33b754ba43 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDBExtensions.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/HorizonDBExtensions.cs @@ -111,21 +111,21 @@ public static HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(thi } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// 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. + /// 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) + /// Returns a object. + public static HorizonDbPrivateEndpointConnectionResource GetHorizonDbPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHorizonDBArmClient(client).GetPrivateEndpointConnectionResource(id); + return GetMockableHorizonDBArmClient(client).GetHorizonDbPrivateEndpointConnectionResource(id); } /// @@ -278,40 +278,40 @@ public static Response GetHorizonDbParameterGro /// Updates a private endpoint connection. /// /// Mocking. - /// To mock this method, please mock instead. + /// 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 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) + public static async Task> UpdateAsync(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string privateEndpointConnectionName, HorizonDbPrivateEndpointConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableHorizonDBResourceGroupResource(resourceGroupResource).UpdateAsync(waitUntil, privateEndpointConnectionName, properties, cancellationToken).ConfigureAwait(false); + return await GetMockableHorizonDBResourceGroupResource(resourceGroupResource).UpdateAsync(waitUntil, privateEndpointConnectionName, patch, cancellationToken).ConfigureAwait(false); } /// /// Updates a private endpoint connection. /// /// Mocking. - /// To mock this method, please mock instead. + /// 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 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) + public static ArmOperation Update(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string privateEndpointConnectionName, HorizonDbPrivateEndpointConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableHorizonDBResourceGroupResource(resourceGroupResource).Update(waitUntil, privateEndpointConnectionName, properties, cancellationToken); + return GetMockableHorizonDBResourceGroupResource(resourceGroupResource).Update(waitUntil, privateEndpointConnectionName, patch, 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 index d47f9e8b79bb..ddea2abb05fc 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBArmClient.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBArmClient.cs @@ -62,13 +62,13 @@ public virtual HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(Re 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. + /// 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) + /// Returns a object. + public virtual HorizonDbPrivateEndpointConnectionResource GetHorizonDbPrivateEndpointConnectionResource(ResourceIdentifier id) { - PrivateEndpointConnectionResource.ValidateResourceId(id); - return new PrivateEndpointConnectionResource(Client, id); + HorizonDbPrivateEndpointConnectionResource.ValidateResourceId(id); + return new HorizonDbPrivateEndpointConnectionResource(Client, id); } /// Gets an object representing a along with the instance operations that can be performed on it but with no data. diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBResourceGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBResourceGroupResource.cs index 187c64443c84..0b0f2482557d 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBResourceGroupResource.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Extensions/MockableHorizonDBResourceGroupResource.cs @@ -189,14 +189,14 @@ public virtual Response GetHorizonDbParameterGr /// /// 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 resource properties to be updated. /// The cancellation token to use. - /// or is null. + /// 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) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, string privateEndpointConnectionName, HorizonDbPrivateEndpointConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - Argument.AssertNotNull(properties, nameof(properties)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = HorizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("MockableHorizonDBResourceGroupResource.Update"); scope.Start(); @@ -206,7 +206,7 @@ public virtual async Task> Upda { CancellationToken = cancellationToken }; - HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, PrivateEndpointConnectionUpdate.ToRequestContent(properties), context); + HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, HorizonDbPrivateEndpointConnectionPatch.ToRequestContent(patch), context); Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); HorizonDBArmOperation operation = new HorizonDBArmOperation( new HorizonDBPrivateEndpointConnectionOperationSource(), @@ -247,14 +247,14 @@ public virtual async Task> Upda /// /// 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 resource properties to be updated. /// The cancellation token to use. - /// or is null. + /// 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) + public virtual ArmOperation Update(WaitUntil waitUntil, string privateEndpointConnectionName, HorizonDbPrivateEndpointConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - Argument.AssertNotNull(properties, nameof(properties)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = HorizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("MockableHorizonDBResourceGroupResource.Update"); scope.Start(); @@ -264,7 +264,7 @@ public virtual ArmOperation Update(WaitUntil { CancellationToken = cancellationToken }; - HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, PrivateEndpointConnectionUpdate.ToRequestContent(properties), context); + HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, HorizonDbPrivateEndpointConnectionPatch.ToRequestContent(patch), context); Response response = Pipeline.ProcessMessage(message, context); HorizonDBArmOperation operation = new HorizonDBArmOperation( new HorizonDBPrivateEndpointConnectionOperationSource(), diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs index b15723801996..cc8c4331cefa 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbClusterResource.cs @@ -712,11 +712,11 @@ public virtual Response GetHorizonDbPool(string 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() + /// Gets a collection of HorizonDbPrivateEndpointConnections in the . + /// An object representing collection of HorizonDbPrivateEndpointConnections and their operations over a HorizonDbPrivateEndpointConnectionResource. + public virtual HorizonDbPrivateEndpointConnectionCollection GetHorizonDbPrivateEndpointConnections() { - return GetCachedClient(client => new PrivateEndpointConnectionResourceCollection(client, Id)); + return GetCachedClient(client => new HorizonDbPrivateEndpointConnectionCollection(client, Id)); } /// Gets a private endpoint connection. @@ -725,11 +725,11 @@ public virtual PrivateEndpointConnectionResourceCollection GetPrivateEndpointCon /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetPrivateEndpointConnectionResourceAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetHorizonDbPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - return await GetPrivateEndpointConnectionResources().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + return await GetHorizonDbPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); } /// Gets a private endpoint connection. @@ -738,11 +738,11 @@ public virtual async Task> GetPrivat /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetPrivateEndpointConnectionResource(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual Response GetHorizonDbPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - return GetPrivateEndpointConnectionResources().Get(privateEndpointConnectionName, cancellationToken); + return GetHorizonDbPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } /// Gets a collection of HorizonDbPrivateLinkResources in the . diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionCollection.cs similarity index 73% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionCollection.cs index c9d458d37562..1d45171d42e4 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceCollection.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionCollection.cs @@ -19,28 +19,28 @@ 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 . + /// 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 GetHorizonDbPrivateEndpointConnections method from an instance of . /// - public partial class PrivateEndpointConnectionResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HorizonDbPrivateEndpointConnectionCollection : 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 HorizonDbPrivateEndpointConnectionCollection for mocking. + protected HorizonDbPrivateEndpointConnectionCollection() { } - /// Initializes a new instance of class. + /// 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) + internal HorizonDbPrivateEndpointConnectionCollection(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"); + TryGetApiVersion(HorizonDbPrivateEndpointConnectionResource.ResourceType, out string horizonDbPrivateEndpointConnectionApiVersion); + _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", HorizonDbPrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); + _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateEndpointConnectionApiVersion ?? "2026-01-20-preview"); ValidateResourceId(id); } @@ -75,11 +75,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// 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) + public virtual async Task> GetAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.Get"); scope.Start(); try { @@ -89,12 +89,12 @@ public virtual async Task> GetAsync( }; 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); + Response response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); if (response.Value == null) { throw new RequestFailedException(response.GetRawResponse()); } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HorizonDbPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -124,11 +124,11 @@ public virtual async Task> GetAsync( /// 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) + public virtual Response Get(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.Get"); scope.Start(); try { @@ -138,12 +138,12 @@ public virtual Response Get(string privateEnd }; 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); + Response response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); if (response.Value == null) { throw new RequestFailedException(response.GetRawResponse()); } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HorizonDbPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -170,14 +170,14 @@ public virtual Response Get(string privateEnd /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// 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)); + return new AsyncPageableWrapper(new HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateEndpointConnectionResource(Client, data)); } /// @@ -198,14 +198,14 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// 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)); + return new PageableWrapper(new HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT(_horizonDbPrivateEndpointConnectionsRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context), data => new HorizonDbPrivateEndpointConnectionResource(Client, data)); } /// @@ -233,7 +233,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.Exists"); scope.Start(); try { @@ -244,14 +244,14 @@ public virtual async Task> ExistsAsync(string privateEndpointConn 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; + Response response = default; switch (result.Status) { case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); break; case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + response = Response.FromValue((HorizonDbPrivateEndpointConnectionData)null, result); break; default: throw new RequestFailedException(result); @@ -290,7 +290,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.Exists"); scope.Start(); try { @@ -301,14 +301,14 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance 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; + Response response = default; switch (result.Status) { case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); break; case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + response = Response.FromValue((HorizonDbPrivateEndpointConnectionData)null, result); break; default: throw new RequestFailedException(result); @@ -343,11 +343,11 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// 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) + public virtual async Task> GetIfExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.GetIfExists"); scope.Start(); try { @@ -358,23 +358,23 @@ public virtual async Task> G 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; + Response response = default; switch (result.Status) { case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); break; case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + response = Response.FromValue((HorizonDbPrivateEndpointConnectionData)null, result); break; default: throw new RequestFailedException(result); } if (response.Value == null) { - return new NoValueResponse(response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HorizonDbPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -404,11 +404,11 @@ public virtual async Task> G /// 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) + public virtual NullableResponse GetIfExists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetIfExists"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionCollection.GetIfExists"); scope.Start(); try { @@ -419,23 +419,23 @@ public virtual NullableResponse GetIfExists(s 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; + Response response = default; switch (result.Status) { case 200: - response = Response.FromValue(PrivateEndpointConnectionResourceData.FromResponse(result), result); + response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); break; case 404: - response = Response.FromValue((PrivateEndpointConnectionResourceData)null, result); + response = Response.FromValue((HorizonDbPrivateEndpointConnectionData)null, result); break; default: throw new RequestFailedException(result); } if (response.Value == null) { - return new NoValueResponse(response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HorizonDbPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -444,7 +444,7 @@ public virtual NullableResponse GetIfExists(s } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -455,7 +455,7 @@ IEnumerator IEnumerable.GetEnumerator() } /// The cancellation token to use. - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + 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/HorizonDbPrivateEndpointConnectionData.Serialization.cs similarity index 69% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionData.Serialization.cs index a55b077402e6..442f128827de 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionData.Serialization.cs @@ -18,58 +18,58 @@ namespace Azure.ResourceManager.HorizonDB { /// A private endpoint connection resource. - public partial class PrivateEndpointConnectionResourceData : ResourceData, IJsonModel + public partial class HorizonDbPrivateEndpointConnectionData : 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; + 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); + return DeserializeHorizonDbPrivateEndpointConnectionData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionResourceData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionData)} 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionData)} does not support writing '{options.Format}' format."); } } /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + 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); + HorizonDbPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbPrivateEndpointConnectionData)PersistableModelCreateCore(data, options); /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// The to deserialize the from. - internal static PrivateEndpointConnectionResourceData FromResponse(Response response) + /// The to deserialize the from. + internal static HorizonDbPrivateEndpointConnectionData FromResponse(Response response) { using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializePrivateEndpointConnectionResourceData(document.RootElement, ModelSerializationExtensions.WireOptions); + return DeserializeHorizonDbPrivateEndpointConnectionData(document.RootElement, ModelSerializationExtensions.WireOptions); } /// The JSON writer. /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -80,10 +80,10 @@ void IJsonModel.Write(Utf8JsonWriter writ /// 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); if (Optional.IsDefined(Properties)) @@ -95,24 +95,24 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri /// The JSON reader. /// The client options for reading and writing models. - PrivateEndpointConnectionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (PrivateEndpointConnectionResourceData)JsonModelCreateCore(ref reader, options); + HorizonDbPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbPrivateEndpointConnectionData)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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionResourceData(document.RootElement, options); + return DeserializeHorizonDbPrivateEndpointConnectionData(document.RootElement, options); } /// The JSON element to deserialize. /// The client options for reading and writing models. - internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpointConnectionResourceData(JsonElement element, ModelReaderWriterOptions options) + internal static HorizonDbPrivateEndpointConnectionData DeserializeHorizonDbPrivateEndpointConnectionData(JsonElement element, ModelReaderWriterOptions options) { if (element.ValueKind == JsonValueKind.Null) { @@ -123,7 +123,7 @@ internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpoint ResourceType resourceType = default; SystemData systemData = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - PrivateEndpointConnectionProperties properties = default; + HorizonDbPrivateEndpointConnectionProperties properties = default; foreach (var prop in element.EnumerateObject()) { if (prop.NameEquals("id"u8)) @@ -164,7 +164,7 @@ internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpoint { continue; } - properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + properties = HorizonDbPrivateEndpointConnectionProperties.DeserializeHorizonDbPrivateEndpointConnectionProperties(prop.Value, options); continue; } if (options.Format != "W") @@ -172,7 +172,7 @@ internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpoint additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - return new PrivateEndpointConnectionResourceData( + return new HorizonDbPrivateEndpointConnectionData( id, name, resourceType, diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionData.cs similarity index 68% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionData.cs index 0306dc7c5095..65eb691458cc 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResourceData.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionData.cs @@ -14,30 +14,30 @@ namespace Azure.ResourceManager.HorizonDB { /// A private endpoint connection resource. - public partial class PrivateEndpointConnectionResourceData : ResourceData + public partial class HorizonDbPrivateEndpointConnectionData : 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 . + internal HorizonDbPrivateEndpointConnectionData() { } - /// Initializes a new instance of . + /// 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) + internal HorizonDbPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) { _additionalBinaryDataProperties = additionalBinaryDataProperties; Properties = properties; } /// The private endpoint connection properties. - public PrivateEndpointConnectionProperties Properties { get; } + public HorizonDbPrivateEndpointConnectionProperties Properties { get; } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..b12ec6742bc5 --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionResource.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 HorizonDbPrivateEndpointConnectionResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbPrivateEndpointConnectionData(); + + /// 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. + HorizonDbPrivateEndpointConnectionData 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. + HorizonDbPrivateEndpointConnectionData 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/HorizonDbPrivateEndpointConnectionResource.cs similarity index 72% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionResource.cs index 553ccba3f8f8..c990d2eb0aaa 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/HorizonDbPrivateEndpointConnectionResource.cs @@ -17,40 +17,40 @@ 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. + /// A class representing a HorizonDbPrivateEndpointConnection 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 GetHorizonDbPrivateEndpointConnections method. /// - public partial class PrivateEndpointConnectionResource : ArmResource + public partial class HorizonDbPrivateEndpointConnectionResource : ArmResource { private readonly ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics; private readonly HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient; - private readonly PrivateEndpointConnectionResourceData _data; + private readonly HorizonDbPrivateEndpointConnectionData _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 HorizonDbPrivateEndpointConnectionResource for mocking. + protected HorizonDbPrivateEndpointConnectionResource() { } - /// Initializes a new instance of class. + /// 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) + internal HorizonDbPrivateEndpointConnectionResource(ArmClient client, HorizonDbPrivateEndpointConnectionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of class. + /// 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) + internal HorizonDbPrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - TryGetApiVersion(ResourceType, out string privateEndpointConnectionResourceApiVersion); + TryGetApiVersion(ResourceType, out string horizonDbPrivateEndpointConnectionApiVersion); _horizonDbPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDB", ResourceType.Namespace, Diagnostics); - _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionResourceApiVersion ?? "2026-01-20-preview"); + _horizonDbPrivateEndpointConnectionsRestClient = new HorizonDbPrivateEndpointConnections(_horizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, horizonDbPrivateEndpointConnectionApiVersion ?? "2026-01-20-preview"); ValidateResourceId(id); } @@ -58,7 +58,7 @@ internal PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier public virtual bool HasData { get; } /// Gets the data representing this Feature. - public virtual PrivateEndpointConnectionResourceData Data + public virtual HorizonDbPrivateEndpointConnectionData Data { get { @@ -108,14 +108,14 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Resource. - /// . + /// . /// /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionResource.Get"); scope.Start(); try { @@ -125,12 +125,12 @@ public virtual async Task> GetAsync( }; 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); + Response response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); if (response.Value == null) { throw new RequestFailedException(response.GetRawResponse()); } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HorizonDbPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -156,14 +156,14 @@ public virtual async Task> GetAsync( /// /// /// Resource. - /// . + /// . /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + using DiagnosticScope scope = _horizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("HorizonDbPrivateEndpointConnectionResource.Get"); scope.Start(); try { @@ -173,12 +173,12 @@ public virtual Response Get(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); + Response response = Response.FromValue(HorizonDbPrivateEndpointConnectionData.FromResponse(result), result); if (response.Value == null) { throw new RequestFailedException(response.GetRawResponse()); } - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HorizonDbPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs index 8b0a51bf5e4f..faa5d31c4970 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/AzureResourceManagerHorizonDBContext.cs @@ -35,11 +35,16 @@ namespace Azure.ResourceManager.HorizonDB [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupProperties))] [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupPropertiesForPatchUpdate))] [ModelReaderWriterBuildable(typeof(HorizonDbParameterGroupResource))] + [ModelReaderWriterBuildable(typeof(HorizonDbParameterProperties))] [ModelReaderWriterBuildable(typeof(HorizonDbPoolData))] [ModelReaderWriterBuildable(typeof(HorizonDbPoolListResult))] [ModelReaderWriterBuildable(typeof(HorizonDbPoolProperties))] [ModelReaderWriterBuildable(typeof(HorizonDbPoolResource))] [ModelReaderWriterBuildable(typeof(HorizonDBPrivateEndpointConnection))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateEndpointConnectionData))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateEndpointConnectionPatch))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateEndpointConnectionProperties))] + [ModelReaderWriterBuildable(typeof(HorizonDbPrivateEndpointConnectionResource))] [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResource))] [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceData))] [ModelReaderWriterBuildable(typeof(HorizonDbPrivateLinkResourceListResult))] @@ -53,13 +58,8 @@ namespace Azure.ResourceManager.HorizonDB [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/HorizonDBPrivateEndpointConnection.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs index 77fb46d43620..30671033dd7b 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.Serialization.cs @@ -123,7 +123,7 @@ internal static HorizonDBPrivateEndpointConnection DeserializeHorizonDBPrivateEn ResourceType resourceType = default; SystemData systemData = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - PrivateEndpointConnectionProperties properties = default; + HorizonDbPrivateEndpointConnectionProperties properties = default; foreach (var prop in element.EnumerateObject()) { if (prop.NameEquals("id"u8)) @@ -164,7 +164,7 @@ internal static HorizonDBPrivateEndpointConnection DeserializeHorizonDBPrivateEn { continue; } - properties = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + properties = HorizonDbPrivateEndpointConnectionProperties.DeserializeHorizonDbPrivateEndpointConnectionProperties(prop.Value, options); continue; } if (options.Format != "W") diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs index 499b21bbb490..efa118aa0291 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDBPrivateEndpointConnection.cs @@ -30,13 +30,13 @@ internal HorizonDBPrivateEndpointConnection() /// 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) + internal HorizonDBPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, HorizonDbPrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) { _additionalBinaryDataProperties = additionalBinaryDataProperties; Properties = properties; } /// The private endpoint connection properties. - public PrivateEndpointConnectionProperties Properties { get; } + public HorizonDbPrivateEndpointConnectionProperties Properties { get; } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterCreateMode.cs similarity index 52% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterCreateMode.cs index dca6108e8d9e..555feaafef1b 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModeCluster.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterCreateMode.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// The mode to create a new HorizonDb cluster. - public readonly partial struct CreateModeCluster : IEquatable + public readonly partial struct HorizonDbClusterCreateMode : IEquatable { private readonly string _value; /// Create a new cluster. @@ -22,10 +22,10 @@ namespace Azure.ResourceManager.HorizonDB.Models /// Create cluster from point-in-time restore. private const string PointInTimeRestoreValue = "PointInTimeRestore"; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The value. /// is null. - public CreateModeCluster(string value) + public HorizonDbClusterCreateMode(string value) { Argument.AssertNotNull(value, nameof(value)); @@ -33,38 +33,38 @@ public CreateModeCluster(string value) } /// Create a new cluster. - public static CreateModeCluster Create { get; } = new CreateModeCluster(CreateValue); + public static HorizonDbClusterCreateMode Create { get; } = new HorizonDbClusterCreateMode(CreateValue); /// Update an existing cluster. - public static CreateModeCluster Update { get; } = new CreateModeCluster(UpdateValue); + public static HorizonDbClusterCreateMode Update { get; } = new HorizonDbClusterCreateMode(UpdateValue); /// Create cluster from point-in-time restore. - public static CreateModeCluster PointInTimeRestore { get; } = new CreateModeCluster(PointInTimeRestoreValue); + public static HorizonDbClusterCreateMode PointInTimeRestore { get; } = new HorizonDbClusterCreateMode(PointInTimeRestoreValue); - /// Determines if two values are the same. + /// 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); + public static bool operator ==(HorizonDbClusterCreateMode left, HorizonDbClusterCreateMode right) => left.Equals(right); - /// Determines if two values are not the same. + /// 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); + public static bool operator !=(HorizonDbClusterCreateMode left, HorizonDbClusterCreateMode right) => !left.Equals(right); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator CreateModeCluster(string value) => new CreateModeCluster(value); + public static implicit operator HorizonDbClusterCreateMode(string value) => new HorizonDbClusterCreateMode(value); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator CreateModeCluster?(string value) => value == null ? null : new CreateModeCluster(value); + public static implicit operator HorizonDbClusterCreateMode?(string value) => value == null ? null : new HorizonDbClusterCreateMode(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CreateModeCluster other && Equals(other); + public override bool Equals(object obj) => obj is HorizonDbClusterCreateMode other && Equals(other); /// - public bool Equals(CreateModeCluster other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(HorizonDbClusterCreateMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] 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 index 22d9b16ebd4e..ba8fcf324242 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.Serialization.cs @@ -97,10 +97,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(PointInTimeUTC)) + if (Optional.IsDefined(PointInTimeUtc)) { writer.WritePropertyName("pointInTimeUTC"u8); - writer.WriteStringValue(PointInTimeUTC.Value, "O"); + writer.WriteStringValue(PointInTimeUtc.Value, "O"); } if (Optional.IsDefined(SourceClusterResourceId)) { @@ -207,19 +207,19 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties string administratorLogin = default; string administratorLoginPassword = default; string version = default; - CreateModeCluster? createMode = default; - DateTimeOffset? pointInTimeUTC = default; + HorizonDbClusterCreateMode? 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; + HorizonDbClusterState? state = default; string fullyQualifiedDomainName = default; string readonlyEndpoint = default; - ProvisioningState? provisioningState = default; - ZonePlacementPolicy? zonePlacementPolicy = default; + HorizonDbProvisioningState? provisioningState = default; + HorizonDbZonePlacementPolicy? zonePlacementPolicy = default; HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) @@ -245,7 +245,7 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties { continue; } - createMode = new CreateModeCluster(prop.Value.GetString()); + createMode = new HorizonDbClusterCreateMode(prop.Value.GetString()); continue; } if (prop.NameEquals("pointInTimeUTC"u8)) @@ -254,7 +254,7 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties { continue; } - pointInTimeUTC = prop.Value.GetDateTimeOffset("O"); + pointInTimeUtc = prop.Value.GetDateTimeOffset("O"); continue; } if (prop.NameEquals("sourceClusterResourceId"u8)) @@ -309,7 +309,7 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties { continue; } - state = new State(prop.Value.GetString()); + state = new HorizonDbClusterState(prop.Value.GetString()); continue; } if (prop.NameEquals("fullyQualifiedDomainName"u8)) @@ -328,7 +328,7 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties { continue; } - provisioningState = new ProvisioningState(prop.Value.GetString()); + provisioningState = new HorizonDbProvisioningState(prop.Value.GetString()); continue; } if (prop.NameEquals("zonePlacementPolicy"u8)) @@ -337,7 +337,7 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties { continue; } - zonePlacementPolicy = new ZonePlacementPolicy(prop.Value.GetString()); + zonePlacementPolicy = new HorizonDbZonePlacementPolicy(prop.Value.GetString()); continue; } if (prop.NameEquals("parameterGroup"u8)) @@ -359,7 +359,7 @@ internal static HorizonDbClusterProperties DeserializeHorizonDbClusterProperties administratorLoginPassword, version, createMode, - pointInTimeUTC, + pointInTimeUtc, sourceClusterResourceId, poolName, replicaCount, diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs index eb2d972cc617..30fbe5ddb42d 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterProperties.cs @@ -33,7 +33,7 @@ public HorizonDbClusterProperties(string administratorLogin) /// 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. + /// 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. @@ -47,13 +47,13 @@ public HorizonDbClusterProperties(string administratorLogin) /// 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) + internal HorizonDbClusterProperties(string administratorLogin, string administratorLoginPassword, string version, HorizonDbClusterCreateMode? createMode, DateTimeOffset? pointInTimeUtc, ResourceIdentifier sourceClusterResourceId, string poolName, int? replicaCount, int? vCores, string processorType, Network network, HorizonDbClusterState? state, string fullyQualifiedDomainName, string readonlyEndpoint, HorizonDbProvisioningState? provisioningState, HorizonDbZonePlacementPolicy? zonePlacementPolicy, HorizonDbClusterParameterGroupConnectionProperties parameterGroup, IDictionary additionalBinaryDataProperties) { AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; Version = version; CreateMode = createMode; - PointInTimeUTC = pointInTimeUTC; + PointInTimeUtc = pointInTimeUtc; SourceClusterResourceId = sourceClusterResourceId; PoolName = poolName; ReplicaCount = replicaCount; @@ -79,10 +79,10 @@ internal HorizonDbClusterProperties(string administratorLogin, string administra public string Version { get; set; } /// The mode to create a new HorizonDb cluster. - public CreateModeCluster? CreateMode { get; set; } + public HorizonDbClusterCreateMode? CreateMode { get; set; } /// Restore point creation time specifying the time to restore from. - public DateTimeOffset? PointInTimeUTC { get; set; } + public DateTimeOffset? PointInTimeUtc { get; set; } /// The source cluster resource ID for restore or replica creation. public ResourceIdentifier SourceClusterResourceId { get; set; } @@ -103,7 +103,7 @@ internal HorizonDbClusterProperties(string administratorLogin, string administra internal Network Network { get; set; } /// Current state of the cluster. - public State? State { get; } + public HorizonDbClusterState? State { get; } /// The fully qualified domain name of the cluster. public string FullyQualifiedDomainName { get; } @@ -112,16 +112,16 @@ internal HorizonDbClusterProperties(string administratorLogin, string administra public string ReadonlyEndpoint { get; } /// The provisioning state of the cluster. - public ProvisioningState? ProvisioningState { get; } + public HorizonDbProvisioningState? ProvisioningState { get; } /// Defines how replicas are placed across availability zones. - public ZonePlacementPolicy? ZonePlacementPolicy { get; set; } + public HorizonDbZonePlacementPolicy? 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 + public HorizonDbPublicNetworkAccessState? PublicNetworkAccess { get { diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterState.cs similarity index 54% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterState.cs index 5b7a63ac0817..1875906b844c 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/State.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbClusterState.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// Current states. - public readonly partial struct State : IEquatable + public readonly partial struct HorizonDbClusterState : IEquatable { private readonly string _value; /// Is ready and operational. @@ -32,10 +32,10 @@ namespace Azure.ResourceManager.HorizonDB.Models /// Is healthy. private const string HealthyValue = "Healthy"; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The value. /// is null. - public State(string value) + public HorizonDbClusterState(string value) { Argument.AssertNotNull(value, nameof(value)); @@ -43,53 +43,53 @@ public State(string value) } /// Is ready and operational. - public static State Ready { get; } = new State(ReadyValue); + public static HorizonDbClusterState Ready { get; } = new HorizonDbClusterState(ReadyValue); /// Is being dropped/deleted. - public static State Dropping { get; } = new State(DroppingValue); + public static HorizonDbClusterState Dropping { get; } = new HorizonDbClusterState(DroppingValue); /// Is disabled. - public static State Disabled { get; } = new State(DisabledValue); + public static HorizonDbClusterState Disabled { get; } = new HorizonDbClusterState(DisabledValue); /// Is starting up. - public static State Starting { get; } = new State(StartingValue); + public static HorizonDbClusterState Starting { get; } = new HorizonDbClusterState(StartingValue); /// Is stopping. - public static State Stopping { get; } = new State(StoppingValue); + public static HorizonDbClusterState Stopping { get; } = new HorizonDbClusterState(StoppingValue); /// Is stopped. - public static State Stopped { get; } = new State(StoppedValue); + public static HorizonDbClusterState Stopped { get; } = new HorizonDbClusterState(StoppedValue); /// Is being updated. - public static State Updating { get; } = new State(UpdatingValue); + public static HorizonDbClusterState Updating { get; } = new HorizonDbClusterState(UpdatingValue); /// Is healthy. - public static State Healthy { get; } = new State(HealthyValue); + public static HorizonDbClusterState Healthy { get; } = new HorizonDbClusterState(HealthyValue); - /// Determines if two values are the same. + /// 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); + public static bool operator ==(HorizonDbClusterState left, HorizonDbClusterState right) => left.Equals(right); - /// Determines if two values are not the same. + /// 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); + public static bool operator !=(HorizonDbClusterState left, HorizonDbClusterState right) => !left.Equals(right); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator State(string value) => new State(value); + public static implicit operator HorizonDbClusterState(string value) => new HorizonDbClusterState(value); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator State?(string value) => value == null ? null : new State(value); + public static implicit operator HorizonDbClusterState?(string value) => value == null ? null : new HorizonDbClusterState(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is State other && Equals(other); + public override bool Equals(object obj) => obj is HorizonDbClusterState other && Equals(other); /// - public bool Equals(State other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(HorizonDbClusterState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] 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 index 8d4a04bfbcc8..c72b87de36d6 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.Serialization.cs @@ -138,7 +138,7 @@ internal static HorizonDbFirewallRuleProperties DeserializeHorizonDbFirewallRule string startIpAddress = default; string endIpAddress = default; string description = default; - ProvisioningState? provisioningState = default; + HorizonDbProvisioningState? provisioningState = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -163,7 +163,7 @@ internal static HorizonDbFirewallRuleProperties DeserializeHorizonDbFirewallRule { continue; } - provisioningState = new ProvisioningState(prop.Value.GetString()); + provisioningState = new HorizonDbProvisioningState(prop.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs index 8c5dba4cddd8..3e5b2408a315 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbFirewallRuleProperties.cs @@ -36,7 +36,7 @@ public HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddres /// 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) + internal HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddress, string description, HorizonDbProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) { StartIpAddress = startIpAddress; EndIpAddress = endIpAddress; @@ -55,6 +55,6 @@ internal HorizonDbFirewallRuleProperties(string startIpAddress, string endIpAddr public string Description { get; set; } /// The provisioning state of the firewall rule. - public ProvisioningState? ProvisioningState { get; } + public HorizonDbProvisioningState? ProvisioningState { get; } } } 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 index f0c571df622c..1e1cd0ea869d 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.Serialization.cs @@ -78,7 +78,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("parameters"u8); writer.WriteStartArray(); - foreach (ParameterProperties item in Parameters) + foreach (HorizonDbParameterProperties item in Parameters) { writer.WriteObjectValue(item, options); } @@ -151,12 +151,12 @@ internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterG { return null; } - IList parameters = default; + IList parameters = default; string description = default; int? pgVersion = default; int? version = default; bool? applyImmediately = default; - ProvisioningState? provisioningState = default; + HorizonDbProvisioningState? provisioningState = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -166,10 +166,10 @@ internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterG { continue; } - List array = new List(); + List array = new List(); foreach (var item in prop.Value.EnumerateArray()) { - array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); + array.Add(HorizonDbParameterProperties.DeserializeHorizonDbParameterProperties(item, options)); } parameters = array; continue; @@ -212,7 +212,7 @@ internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterG { continue; } - provisioningState = new ProvisioningState(prop.Value.GetString()); + provisioningState = new HorizonDbProvisioningState(prop.Value.GetString()); continue; } if (options.Format != "W") @@ -221,7 +221,7 @@ internal static HorizonDbParameterGroupProperties DeserializeHorizonDbParameterG } } return new HorizonDbParameterGroupProperties( - parameters ?? new ChangeTrackingList(), + parameters ?? new ChangeTrackingList(), description, pgVersion, version, diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs index 4b3e97874eed..e09dfce8c54c 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupProperties.cs @@ -20,7 +20,7 @@ public partial class HorizonDbParameterGroupProperties /// Initializes a new instance of . public HorizonDbParameterGroupProperties() { - Parameters = new ChangeTrackingList(); + Parameters = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -31,7 +31,7 @@ public HorizonDbParameterGroupProperties() /// 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) + internal HorizonDbParameterGroupProperties(IList parameters, string description, int? pgVersion, int? version, bool? applyImmediately, HorizonDbProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) { Parameters = parameters; Description = description; @@ -43,7 +43,7 @@ internal HorizonDbParameterGroupProperties(IList parameters } /// Parameters in the parameter group. - public IList Parameters { get; } + public IList Parameters { get; } /// Description of the parameter group. public string Description { get; set; } @@ -58,6 +58,6 @@ internal HorizonDbParameterGroupProperties(IList parameters public bool? ApplyImmediately { get; set; } /// The provisioning state of the parameter group. - public ProvisioningState? ProvisioningState { get; } + public HorizonDbProvisioningState? 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 index c257685586b9..e6c4cb6deab3 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.Serialization.cs @@ -78,7 +78,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("parameters"u8); writer.WriteStartArray(); - foreach (ParameterProperties item in Parameters) + foreach (HorizonDbParameterProperties item in Parameters) { writer.WriteObjectValue(item, options); } @@ -136,7 +136,7 @@ internal static HorizonDbParameterGroupPropertiesForPatchUpdate DeserializeHoriz { return null; } - IList parameters = default; + IList parameters = default; string description = default; bool? applyImmediately = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); @@ -148,10 +148,10 @@ internal static HorizonDbParameterGroupPropertiesForPatchUpdate DeserializeHoriz { continue; } - List array = new List(); + List array = new List(); foreach (var item in prop.Value.EnumerateArray()) { - array.Add(ParameterProperties.DeserializeParameterProperties(item, options)); + array.Add(HorizonDbParameterProperties.DeserializeHorizonDbParameterProperties(item, options)); } parameters = array; continue; @@ -175,7 +175,7 @@ internal static HorizonDbParameterGroupPropertiesForPatchUpdate DeserializeHoriz additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - return new HorizonDbParameterGroupPropertiesForPatchUpdate(parameters ?? new ChangeTrackingList(), description, applyImmediately, additionalBinaryDataProperties); + 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 index 5412f992ef1e..5f3bab280d8d 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterGroupPropertiesForPatchUpdate.cs @@ -20,7 +20,7 @@ public partial class HorizonDbParameterGroupPropertiesForPatchUpdate /// Initializes a new instance of . public HorizonDbParameterGroupPropertiesForPatchUpdate() { - Parameters = new ChangeTrackingList(); + Parameters = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -28,7 +28,7 @@ public HorizonDbParameterGroupPropertiesForPatchUpdate() /// 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) + internal HorizonDbParameterGroupPropertiesForPatchUpdate(IList parameters, string description, bool? applyImmediately, IDictionary additionalBinaryDataProperties) { Parameters = parameters; Description = description; @@ -37,7 +37,7 @@ internal HorizonDbParameterGroupPropertiesForPatchUpdate(IList Parameters in the parameter group. - public IList Parameters { get; } + public IList Parameters { get; } /// Description of the parameter group. public string Description { get; set; } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterProperties.Serialization.cs similarity index 79% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterProperties.Serialization.cs index 2555fad1cc35..23d22f2a5a00 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterProperties.Serialization.cs @@ -14,51 +14,51 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// Properties of a HorizonDb parameters. - public partial class ParameterProperties : IJsonModel + public partial class HorizonDbParameterProperties : IJsonModel { /// The data to parse. /// The client options for reading and writing models. - protected virtual ParameterProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual HorizonDbParameterProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + 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); + return DeserializeHorizonDbParameterProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ParameterProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HorizonDbParameterProperties)} 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbParameterProperties)} does not support writing '{options.Format}' format."); } } /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + 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); + HorizonDbParameterProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// The JSON writer. /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -69,10 +69,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbParameterProperties)} does not support writing '{format}' format."); } if (Optional.IsDefined(Name)) { @@ -138,24 +138,24 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit /// The JSON reader. /// The client options for reading and writing models. - ParameterProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + HorizonDbParameterProperties 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) + protected virtual HorizonDbParameterProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + 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."); + throw new FormatException($"The model {nameof(HorizonDbParameterProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeParameterProperties(document.RootElement, options); + return DeserializeHorizonDbParameterProperties(document.RootElement, options); } /// The JSON element to deserialize. /// The client options for reading and writing models. - internal static ParameterProperties DeserializeParameterProperties(JsonElement element, ModelReaderWriterOptions options) + internal static HorizonDbParameterProperties DeserializeHorizonDbParameterProperties(JsonElement element, ModelReaderWriterOptions options) { if (element.ValueKind == JsonValueKind.Null) { @@ -235,7 +235,7 @@ internal static ParameterProperties DeserializeParameterProperties(JsonElement e additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - return new ParameterProperties( + return new HorizonDbParameterProperties( name, description, value, diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterProperties.cs similarity index 82% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterProperties.cs index b1bf0993417e..d8e6fa4d8011 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ParameterProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbParameterProperties.cs @@ -11,17 +11,17 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// Properties of a HorizonDb parameters. - public partial class ParameterProperties + public partial class HorizonDbParameterProperties { /// 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 . + public HorizonDbParameterProperties() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The name of the parameter. /// The description of the parameter. /// The value of the configuration. @@ -32,7 +32,7 @@ public ParameterProperties() /// 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) + internal HorizonDbParameterProperties(string name, string description, string value, string dataType, string allowedValues, bool? isDynamic, bool? isReadOnly, Uri documentationLink, string unit, IDictionary additionalBinaryDataProperties) { Name = name; Description = description; diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolCreateMode.cs similarity index 52% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolCreateMode.cs index 3f40ca9968ff..75d60daebba8 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/CreateModePool.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolCreateMode.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// The mode to create a new HorizonDb cluster. - public readonly partial struct CreateModePool : IEquatable + public readonly partial struct HorizonDbPoolCreateMode : IEquatable { private readonly string _value; /// Create a new pool. @@ -20,10 +20,10 @@ namespace Azure.ResourceManager.HorizonDB.Models /// Update an existing pool. private const string UpdateValue = "Update"; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The value. /// is null. - public CreateModePool(string value) + public HorizonDbPoolCreateMode(string value) { Argument.AssertNotNull(value, nameof(value)); @@ -31,35 +31,35 @@ public CreateModePool(string value) } /// Create a new pool. - public static CreateModePool Create { get; } = new CreateModePool(CreateValue); + public static HorizonDbPoolCreateMode Create { get; } = new HorizonDbPoolCreateMode(CreateValue); /// Update an existing pool. - public static CreateModePool Update { get; } = new CreateModePool(UpdateValue); + public static HorizonDbPoolCreateMode Update { get; } = new HorizonDbPoolCreateMode(UpdateValue); - /// Determines if two values are the same. + /// 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); + public static bool operator ==(HorizonDbPoolCreateMode left, HorizonDbPoolCreateMode right) => left.Equals(right); - /// Determines if two values are not the same. + /// 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); + public static bool operator !=(HorizonDbPoolCreateMode left, HorizonDbPoolCreateMode right) => !left.Equals(right); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator CreateModePool(string value) => new CreateModePool(value); + public static implicit operator HorizonDbPoolCreateMode(string value) => new HorizonDbPoolCreateMode(value); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator CreateModePool?(string value) => value == null ? null : new CreateModePool(value); + public static implicit operator HorizonDbPoolCreateMode?(string value) => value == null ? null : new HorizonDbPoolCreateMode(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CreateModePool other && Equals(other); + public override bool Equals(object obj) => obj is HorizonDbPoolCreateMode other && Equals(other); /// - public bool Equals(CreateModePool other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(HorizonDbPoolCreateMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] 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 index 2c7bd9a943f8..a88c1b243d64 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.Serialization.cs @@ -148,11 +148,11 @@ internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonE return null; } AzureLocation? location = default; - State? state = default; + HorizonDbClusterState? state = default; int? replicaCount = default; string version = default; - CreateModePool? createMode = default; - ProvisioningState? provisioningState = default; + HorizonDbPoolCreateMode? createMode = default; + HorizonDbProvisioningState? provisioningState = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -171,7 +171,7 @@ internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonE { continue; } - state = new State(prop.Value.GetString()); + state = new HorizonDbClusterState(prop.Value.GetString()); continue; } if (prop.NameEquals("replicaCount"u8)) @@ -194,7 +194,7 @@ internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonE { continue; } - createMode = new CreateModePool(prop.Value.GetString()); + createMode = new HorizonDbPoolCreateMode(prop.Value.GetString()); continue; } if (prop.NameEquals("provisioningState"u8)) @@ -203,7 +203,7 @@ internal static HorizonDbPoolProperties DeserializeHorizonDbPoolProperties(JsonE { continue; } - provisioningState = new ProvisioningState(prop.Value.GetString()); + provisioningState = new HorizonDbProvisioningState(prop.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs index ad166928601d..038e86ab5d26 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPoolProperties.cs @@ -30,7 +30,7 @@ internal HorizonDbPoolProperties() /// 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) + internal HorizonDbPoolProperties(AzureLocation? location, HorizonDbClusterState? state, int? replicaCount, string version, HorizonDbPoolCreateMode? createMode, HorizonDbProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) { Location = location; State = state; @@ -45,7 +45,7 @@ internal HorizonDbPoolProperties(AzureLocation? location, State? state, int? rep public AzureLocation? Location { get; } /// Current state of the pool. - public State? State { get; } + public HorizonDbClusterState? State { get; } /// Number of replicas in the pool. public int? ReplicaCount { get; } @@ -54,9 +54,9 @@ internal HorizonDbPoolProperties(AzureLocation? location, State? state, int? rep public string Version { get; } /// The create mode for the pool. - public CreateModePool? CreateMode { get; } + public HorizonDbPoolCreateMode? CreateMode { get; } /// The provisioning state of the pool. - public ProvisioningState? ProvisioningState { get; } + public HorizonDbProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionPatch.Serialization.cs similarity index 62% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionPatch.Serialization.cs index e57ab6ee8a5d..e0f1ce8e6669 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionPatch.Serialization.cs @@ -15,61 +15,61 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// PATCH model for private endpoint connections. - public partial class PrivateEndpointConnectionUpdate : IJsonModel + public partial class HorizonDbPrivateEndpointConnectionPatch : IJsonModel { /// The data to parse. /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual HorizonDbPrivateEndpointConnectionPatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + 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); + return DeserializeHorizonDbPrivateEndpointConnectionPatch(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionUpdate)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionPatch)} 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionPatch)} does not support writing '{options.Format}' format."); } } /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + 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); + HorizonDbPrivateEndpointConnectionPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// The to serialize into . - internal static RequestContent ToRequestContent(PrivateEndpointConnectionUpdate privateEndpointConnectionUpdate) + /// The to serialize into . + internal static RequestContent ToRequestContent(HorizonDbPrivateEndpointConnectionPatch horizonDbPrivateEndpointConnectionPatch) { - if (privateEndpointConnectionUpdate == null) + if (horizonDbPrivateEndpointConnectionPatch == null) { return null; } - return RequestContent.Create(privateEndpointConnectionUpdate, ModelSerializationExtensions.WireOptions); + return RequestContent.Create(horizonDbPrivateEndpointConnectionPatch, ModelSerializationExtensions.WireOptions); } /// The JSON writer. /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -80,10 +80,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mo /// 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionPatch)} does not support writing '{format}' format."); } if (Optional.IsDefined(Properties)) { @@ -109,24 +109,24 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit /// The JSON reader. /// The client options for reading and writing models. - PrivateEndpointConnectionUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + HorizonDbPrivateEndpointConnectionPatch 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) + protected virtual HorizonDbPrivateEndpointConnectionPatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionPatch)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionUpdate(document.RootElement, options); + return DeserializeHorizonDbPrivateEndpointConnectionPatch(document.RootElement, options); } /// The JSON element to deserialize. /// The client options for reading and writing models. - internal static PrivateEndpointConnectionUpdate DeserializePrivateEndpointConnectionUpdate(JsonElement element, ModelReaderWriterOptions options) + internal static HorizonDbPrivateEndpointConnectionPatch DeserializeHorizonDbPrivateEndpointConnectionPatch(JsonElement element, ModelReaderWriterOptions options) { if (element.ValueKind == JsonValueKind.Null) { @@ -150,7 +150,7 @@ internal static PrivateEndpointConnectionUpdate DeserializePrivateEndpointConnec additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - return new PrivateEndpointConnectionUpdate(properties, additionalBinaryDataProperties); + return new HorizonDbPrivateEndpointConnectionPatch(properties, additionalBinaryDataProperties); } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionPatch.cs similarity index 66% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionPatch.cs index a0afccf688a1..3f4cbb39f655 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionUpdate.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionPatch.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// PATCH model for private endpoint connections. - public partial class PrivateEndpointConnectionUpdate + public partial class HorizonDbPrivateEndpointConnectionPatch { /// 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 . + public HorizonDbPrivateEndpointConnectionPatch() { } - /// Initializes a new instance of . + /// 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) + internal HorizonDbPrivateEndpointConnectionPatch(OptionalPropertiesUpdateableProperties properties, IDictionary additionalBinaryDataProperties) { Properties = properties; _additionalBinaryDataProperties = additionalBinaryDataProperties; diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProperties.Serialization.cs similarity index 71% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProperties.Serialization.cs index 4f8f7066ce46..026035d79cef 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProperties.Serialization.cs @@ -14,56 +14,56 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// Properties of the private endpoint connection. - public partial class PrivateEndpointConnectionProperties : IJsonModel + public partial class HorizonDbPrivateEndpointConnectionProperties : IJsonModel { - /// Initializes a new instance of for deserialization. - internal PrivateEndpointConnectionProperties() + /// Initializes a new instance of for deserialization. + internal HorizonDbPrivateEndpointConnectionProperties() { } /// The data to parse. /// The client options for reading and writing models. - protected virtual PrivateEndpointConnectionProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual HorizonDbPrivateEndpointConnectionProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + 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); + return DeserializeHorizonDbPrivateEndpointConnectionProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(PrivateEndpointConnectionProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionProperties)} 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionProperties)} does not support writing '{options.Format}' format."); } } /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + 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); + HorizonDbPrivateEndpointConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// The JSON writer. /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -74,10 +74,10 @@ void IJsonModel.Write(Utf8JsonWriter 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; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionProperties)} does not support writing '{format}' format."); } if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) { @@ -125,24 +125,24 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit /// The JSON reader. /// The client options for reading and writing models. - PrivateEndpointConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + HorizonDbPrivateEndpointConnectionProperties 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) + protected virtual HorizonDbPrivateEndpointConnectionProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + 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."); + throw new FormatException($"The model {nameof(HorizonDbPrivateEndpointConnectionProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + return DeserializeHorizonDbPrivateEndpointConnectionProperties(document.RootElement, options); } /// The JSON element to deserialize. /// The client options for reading and writing models. - internal static PrivateEndpointConnectionProperties DeserializePrivateEndpointConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + internal static HorizonDbPrivateEndpointConnectionProperties DeserializeHorizonDbPrivateEndpointConnectionProperties(JsonElement element, ModelReaderWriterOptions options) { if (element.ValueKind == JsonValueKind.Null) { @@ -204,7 +204,7 @@ internal static PrivateEndpointConnectionProperties DeserializePrivateEndpointCo additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - return new PrivateEndpointConnectionProperties(groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties); + return new HorizonDbPrivateEndpointConnectionProperties(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/HorizonDbPrivateEndpointConnectionProperties.cs similarity index 77% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProperties.cs index 86b79ee5e919..a8c895d87f9d 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPrivateEndpointConnectionProperties.cs @@ -13,26 +13,26 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// Properties of the private endpoint connection. - public partial class PrivateEndpointConnectionProperties + public partial class HorizonDbPrivateEndpointConnectionProperties { /// Keeps track of any properties unknown to the library. private protected readonly IDictionary _additionalBinaryDataProperties; - /// Initializes a new instance of . + /// Initializes a new instance of . /// A collection of information about the state of the connection between service consumer and provider. - internal PrivateEndpointConnectionProperties(HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + internal HorizonDbPrivateEndpointConnectionProperties(HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState) { GroupIds = new ChangeTrackingList(); PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; } - /// Initializes a new instance of . + /// 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) + internal HorizonDbPrivateEndpointConnectionProperties(IReadOnlyList groupIds, PrivateEndpoint privateEndpoint, HorizonDBPrivateLinkServiceConnectionState privateLinkServiceConnectionState, HorizonDBPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) { GroupIds = groupIds; PrivateEndpoint = privateEndpoint; diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbProvisioningState.cs similarity index 53% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbProvisioningState.cs index 8de2fd798e4d..dc0fe5c1d82b 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ProvisioningState.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbProvisioningState.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// The provisioning state. - public readonly partial struct ProvisioningState : IEquatable + public readonly partial struct HorizonDbProvisioningState : IEquatable { private readonly string _value; /// Provisioning completed successfully. @@ -26,10 +26,10 @@ namespace Azure.ResourceManager.HorizonDB.Models /// Provisioning is in progress. private const string ProvisioningValue = "Provisioning"; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The value. /// is null. - public ProvisioningState(string value) + public HorizonDbProvisioningState(string value) { Argument.AssertNotNull(value, nameof(value)); @@ -37,44 +37,44 @@ public ProvisioningState(string value) } /// Provisioning completed successfully. - public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); + public static HorizonDbProvisioningState Succeeded { get; } = new HorizonDbProvisioningState(SucceededValue); /// Provisioning failed. - public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); + public static HorizonDbProvisioningState Failed { get; } = new HorizonDbProvisioningState(FailedValue); /// Provisioning was canceled. - public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); + public static HorizonDbProvisioningState Canceled { get; } = new HorizonDbProvisioningState(CanceledValue); /// Provisioning is in progress. - public static ProvisioningState InProgress { get; } = new ProvisioningState(InProgressValue); + public static HorizonDbProvisioningState InProgress { get; } = new HorizonDbProvisioningState(InProgressValue); /// Provisioning is in progress. - public static ProvisioningState Provisioning { get; } = new ProvisioningState(ProvisioningValue); + public static HorizonDbProvisioningState Provisioning { get; } = new HorizonDbProvisioningState(ProvisioningValue); - /// Determines if two values are the same. + /// 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); + public static bool operator ==(HorizonDbProvisioningState left, HorizonDbProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. + /// 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); + public static bool operator !=(HorizonDbProvisioningState left, HorizonDbProvisioningState right) => !left.Equals(right); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); + public static implicit operator HorizonDbProvisioningState(string value) => new HorizonDbProvisioningState(value); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator ProvisioningState?(string value) => value == null ? null : new ProvisioningState(value); + public static implicit operator HorizonDbProvisioningState?(string value) => value == null ? null : new HorizonDbProvisioningState(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); + public override bool Equals(object obj) => obj is HorizonDbProvisioningState other && Equals(other); /// - public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(HorizonDbProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPublicNetworkAccessState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPublicNetworkAccessState.cs new file mode 100644 index 000000000000..a37dc4b8a83a --- /dev/null +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbPublicNetworkAccessState.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 HorizonDbPublicNetworkAccessState : 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 HorizonDbPublicNetworkAccessState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Public network access is enabled. + public static HorizonDbPublicNetworkAccessState Enabled { get; } = new HorizonDbPublicNetworkAccessState(EnabledValue); + + /// Public network access is disabled. + public static HorizonDbPublicNetworkAccessState Disabled { get; } = new HorizonDbPublicNetworkAccessState(DisabledValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(HorizonDbPublicNetworkAccessState left, HorizonDbPublicNetworkAccessState 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 !=(HorizonDbPublicNetworkAccessState left, HorizonDbPublicNetworkAccessState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDbPublicNetworkAccessState(string value) => new HorizonDbPublicNetworkAccessState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator HorizonDbPublicNetworkAccessState?(string value) => value == null ? null : new HorizonDbPublicNetworkAccessState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HorizonDbPublicNetworkAccessState other && Equals(other); + + /// + public bool Equals(HorizonDbPublicNetworkAccessState 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/HorizonDbReplicaPatch.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs index 0b81c61a986b..98d7d02d4eaa 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPatch.cs @@ -34,7 +34,7 @@ internal HorizonDbReplicaPatch(HorizonDbReplicaPropertiesForPatchUpdate properti internal HorizonDbReplicaPropertiesForPatchUpdate Properties { get; set; } /// Role of the replica. - public ReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole + public HorizonDbReplicaRole? HorizonDbReplicaPropertiesForPatchUpdateRole { get { 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 index b75d12cc3eab..c906bd7116e2 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.Serialization.cs @@ -141,11 +141,11 @@ internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties { return null; } - ReplicaRole? role = default; - State? status = default; + HorizonDbReplicaRole? role = default; + HorizonDbClusterState? status = default; string fullyQualifiedDomainName = default; string availabilityZone = default; - ProvisioningState? provisioningState = default; + HorizonDbProvisioningState? provisioningState = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -155,7 +155,7 @@ internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties { continue; } - role = new ReplicaRole(prop.Value.GetString()); + role = new HorizonDbReplicaRole(prop.Value.GetString()); continue; } if (prop.NameEquals("status"u8)) @@ -164,7 +164,7 @@ internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties { continue; } - status = new State(prop.Value.GetString()); + status = new HorizonDbClusterState(prop.Value.GetString()); continue; } if (prop.NameEquals("fullyQualifiedDomainName"u8)) @@ -183,7 +183,7 @@ internal static HorizonDbReplicaProperties DeserializeHorizonDbReplicaProperties { continue; } - provisioningState = new ProvisioningState(prop.Value.GetString()); + provisioningState = new HorizonDbProvisioningState(prop.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs index a4175e6efde1..4635813f5b87 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaProperties.cs @@ -28,7 +28,7 @@ public HorizonDbReplicaProperties() /// 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) + internal HorizonDbReplicaProperties(HorizonDbReplicaRole? role, HorizonDbClusterState? status, string fullyQualifiedDomainName, string availabilityZone, HorizonDbProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) { Role = role; Status = status; @@ -39,10 +39,10 @@ internal HorizonDbReplicaProperties(ReplicaRole? role, State? status, string ful } /// Role of the replica. - public ReplicaRole? Role { get; set; } + public HorizonDbReplicaRole? Role { get; set; } /// Current status of the replica. - public State? Status { get; } + public HorizonDbClusterState? Status { get; } /// The fully qualified domain name of the replica. public string FullyQualifiedDomainName { get; } @@ -51,6 +51,6 @@ internal HorizonDbReplicaProperties(ReplicaRole? role, State? status, string ful public string AvailabilityZone { get; set; } /// The provisioning state of the replica. - public ProvisioningState? ProvisioningState { get; } + public HorizonDbProvisioningState? 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 index ed40b9da277b..a3c560c26404 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.Serialization.cs @@ -121,7 +121,7 @@ internal static HorizonDbReplicaPropertiesForPatchUpdate DeserializeHorizonDbRep { return null; } - ReplicaRole? role = default; + HorizonDbReplicaRole? role = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -131,7 +131,7 @@ internal static HorizonDbReplicaPropertiesForPatchUpdate DeserializeHorizonDbRep { continue; } - role = new ReplicaRole(prop.Value.GetString()); + role = new HorizonDbReplicaRole(prop.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs index f94bd76eb9e8..02bae80d4025 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaPropertiesForPatchUpdate.cs @@ -24,13 +24,13 @@ 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) + internal HorizonDbReplicaPropertiesForPatchUpdate(HorizonDbReplicaRole? role, IDictionary additionalBinaryDataProperties) { Role = role; _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Role of the replica. - public ReplicaRole? Role { get; set; } + public HorizonDbReplicaRole? Role { get; set; } } } diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaRole.cs similarity index 52% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaRole.cs index d7d7d4373ce8..46c727608c28 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ReplicaRole.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbReplicaRole.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// Role of the replica. - public readonly partial struct ReplicaRole : IEquatable + public readonly partial struct HorizonDbReplicaRole : IEquatable { private readonly string _value; /// Read-only replica. @@ -20,10 +20,10 @@ namespace Azure.ResourceManager.HorizonDB.Models /// ReadWrite replica. private const string ReadWriteValue = "ReadWrite"; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The value. /// is null. - public ReplicaRole(string value) + public HorizonDbReplicaRole(string value) { Argument.AssertNotNull(value, nameof(value)); @@ -31,35 +31,35 @@ public ReplicaRole(string value) } /// Read-only replica. - public static ReplicaRole Read { get; } = new ReplicaRole(ReadValue); + public static HorizonDbReplicaRole Read { get; } = new HorizonDbReplicaRole(ReadValue); /// ReadWrite replica. - public static ReplicaRole ReadWrite { get; } = new ReplicaRole(ReadWriteValue); + public static HorizonDbReplicaRole ReadWrite { get; } = new HorizonDbReplicaRole(ReadWriteValue); - /// Determines if two values are the same. + /// 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); + public static bool operator ==(HorizonDbReplicaRole left, HorizonDbReplicaRole right) => left.Equals(right); - /// Determines if two values are not the same. + /// 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); + public static bool operator !=(HorizonDbReplicaRole left, HorizonDbReplicaRole right) => !left.Equals(right); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator ReplicaRole(string value) => new ReplicaRole(value); + public static implicit operator HorizonDbReplicaRole(string value) => new HorizonDbReplicaRole(value); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator ReplicaRole?(string value) => value == null ? null : new ReplicaRole(value); + public static implicit operator HorizonDbReplicaRole?(string value) => value == null ? null : new HorizonDbReplicaRole(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ReplicaRole other && Equals(other); + public override bool Equals(object obj) => obj is HorizonDbReplicaRole other && Equals(other); /// - public bool Equals(ReplicaRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(HorizonDbReplicaRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbZonePlacementPolicy.cs similarity index 50% rename from sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs rename to sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbZonePlacementPolicy.cs index 4ac8970ff7d2..901addfd22ba 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/ZonePlacementPolicy.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/HorizonDbZonePlacementPolicy.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HorizonDB.Models { /// The zone redundancy option for the cluster. - public readonly partial struct ZonePlacementPolicy : IEquatable + public readonly partial struct HorizonDbZonePlacementPolicy : IEquatable { private readonly string _value; /// Enforce zonal redundancy. @@ -20,10 +20,10 @@ namespace Azure.ResourceManager.HorizonDB.Models /// Best-effort placement (default). private const string BestEffortValue = "BestEffort"; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The value. /// is null. - public ZonePlacementPolicy(string value) + public HorizonDbZonePlacementPolicy(string value) { Argument.AssertNotNull(value, nameof(value)); @@ -31,35 +31,35 @@ public ZonePlacementPolicy(string value) } /// Enforce zonal redundancy. - public static ZonePlacementPolicy Strict { get; } = new ZonePlacementPolicy(StrictValue); + public static HorizonDbZonePlacementPolicy Strict { get; } = new HorizonDbZonePlacementPolicy(StrictValue); /// Best-effort placement (default). - public static ZonePlacementPolicy BestEffort { get; } = new ZonePlacementPolicy(BestEffortValue); + public static HorizonDbZonePlacementPolicy BestEffort { get; } = new HorizonDbZonePlacementPolicy(BestEffortValue); - /// Determines if two values are the same. + /// 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); + public static bool operator ==(HorizonDbZonePlacementPolicy left, HorizonDbZonePlacementPolicy right) => left.Equals(right); - /// Determines if two values are not the same. + /// 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); + public static bool operator !=(HorizonDbZonePlacementPolicy left, HorizonDbZonePlacementPolicy right) => !left.Equals(right); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator ZonePlacementPolicy(string value) => new ZonePlacementPolicy(value); + public static implicit operator HorizonDbZonePlacementPolicy(string value) => new HorizonDbZonePlacementPolicy(value); - /// Converts a string to a . + /// Converts a string to a . /// The value. - public static implicit operator ZonePlacementPolicy?(string value) => value == null ? null : new ZonePlacementPolicy(value); + public static implicit operator HorizonDbZonePlacementPolicy?(string value) => value == null ? null : new HorizonDbZonePlacementPolicy(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ZonePlacementPolicy other && Equals(other); + public override bool Equals(object obj) => obj is HorizonDbZonePlacementPolicy other && Equals(other); /// - public bool Equals(ZonePlacementPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(HorizonDbZonePlacementPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] 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 index 7afd80a7b992..61f0f65aebb5 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.Serialization.cs @@ -121,7 +121,7 @@ internal static Network DeserializeNetwork(JsonElement element, ModelReaderWrite { return null; } - PublicNetworkAccessState? publicNetworkAccess = default; + HorizonDbPublicNetworkAccessState? publicNetworkAccess = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -131,7 +131,7 @@ internal static Network DeserializeNetwork(JsonElement element, ModelReaderWrite { continue; } - publicNetworkAccess = new PublicNetworkAccessState(prop.Value.GetString()); + publicNetworkAccess = new HorizonDbPublicNetworkAccessState(prop.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs index 582940dd70d5..8e137563ff57 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/Network.cs @@ -24,13 +24,13 @@ 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) + internal Network(HorizonDbPublicNetworkAccessState? publicNetworkAccess, IDictionary additionalBinaryDataProperties) { PublicNetworkAccess = publicNetworkAccess; _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The flag indicating whether public ip is requested. - public PublicNetworkAccessState? PublicNetworkAccess { get; } + public HorizonDbPublicNetworkAccessState? PublicNetworkAccess { get; } } } 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 index f45c30cfe79a..3afd18720832 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.Serialization.cs @@ -89,7 +89,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("value"u8); writer.WriteStartArray(); - foreach (PrivateEndpointConnectionResourceData item in Value) + foreach (HorizonDbPrivateEndpointConnectionData item in Value) { writer.WriteObjectValue(item, options); } @@ -141,17 +141,17 @@ internal static PrivateEndpointConnectionResourceListResult DeserializePrivateEn { return null; } - IList value = default; + 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(); + List array = new List(); foreach (var item in prop.Value.EnumerateArray()) { - array.Add(PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(item, options)); + array.Add(HorizonDbPrivateEndpointConnectionData.DeserializeHorizonDbPrivateEndpointConnectionData(item, options)); } value = array; continue; diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs index c359bc6ff892..b5a58433eb26 100644 --- a/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs +++ b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PrivateEndpointConnectionResourceListResult.cs @@ -20,7 +20,7 @@ internal partial class PrivateEndpointConnectionResourceListResult /// Initializes a new instance of . /// The PrivateEndpointConnectionResource items on this page. - internal PrivateEndpointConnectionResourceListResult(IEnumerable value) + internal PrivateEndpointConnectionResourceListResult(IEnumerable value) { Value = value.ToList(); } @@ -29,7 +29,7 @@ internal PrivateEndpointConnectionResourceListResult(IEnumerable 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) + internal PrivateEndpointConnectionResourceListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) { Value = value; NextLink = nextLink; @@ -37,7 +37,7 @@ internal PrivateEndpointConnectionResourceListResult(IList The PrivateEndpointConnectionResource items on this page. - public IList Value { get; } + 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/PublicNetworkAccessState.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/Models/PublicNetworkAccessState.cs deleted file mode 100644 index 28cdafdf5fa0..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/PrivateEndpointConnectionResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDB/src/Generated/PrivateEndpointConnectionResource.Serialization.cs deleted file mode 100644 index a969da5f965c..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); - } -}