Share via


ArmPostgreSqlFlexibleServersModelFactory.PostgreSqlFlexibleServerNetwork Method

Definition

Initializes a new instance of PostgreSqlFlexibleServerNetwork.

public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNetwork PostgreSqlFlexibleServerNetwork (Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPublicNetworkAccessState? publicNetworkAccess = default, Azure.Core.ResourceIdentifier delegatedSubnetResourceId = default, Azure.Core.ResourceIdentifier privateDnsZoneArmResourceId = default);
static member PostgreSqlFlexibleServerNetwork : Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPublicNetworkAccessState> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNetwork
Public Shared Function PostgreSqlFlexibleServerNetwork (Optional publicNetworkAccess As Nullable(Of PostgreSqlFlexibleServerPublicNetworkAccessState) = Nothing, Optional delegatedSubnetResourceId As ResourceIdentifier = Nothing, Optional privateDnsZoneArmResourceId As ResourceIdentifier = Nothing) As PostgreSqlFlexibleServerNetwork

Parameters

publicNetworkAccess
Nullable<PostgreSqlFlexibleServerPublicNetworkAccessState>

public network access is enabled or not.

delegatedSubnetResourceId
ResourceIdentifier

Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.

privateDnsZoneArmResourceId
ResourceIdentifier

Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.

Returns

A new PostgreSqlFlexibleServerNetwork instance for mocking.

Applies to