Udostępnij za pośrednictwem


ArmNetworkModelFactory.SubnetData Method

Definition

Initializes a new instance of SubnetData.

public static Azure.ResourceManager.Network.SubnetData SubnetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, string addressPrefix = default, System.Collections.Generic.IEnumerable<string> addressPrefixes = default, Azure.ResourceManager.Network.NetworkSecurityGroupData networkSecurityGroup = default, Azure.ResourceManager.Network.RouteTableData routeTable = default, Azure.Core.ResourceIdentifier natGatewayId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ServiceEndpointProperties> serviceEndpoints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.ServiceEndpointPolicyData> serviceEndpointPolicies = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.PrivateEndpointData> privateEndpoints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkIPConfiguration> ipConfigurations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkIPConfigurationProfile> ipConfigurationProfiles = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> ipAllocations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ResourceNavigationLink> resourceNavigationLinks = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ServiceAssociationLink> serviceAssociationLinks = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ServiceDelegation> delegations = default, string purpose = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, Azure.ResourceManager.Network.Models.VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy = default, Azure.ResourceManager.Network.Models.VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ApplicationGatewayIPConfiguration> applicationGatewayIPConfigurations = default, Azure.ResourceManager.Network.Models.SharingScope? sharingScope = default, bool? defaultOutboundAccess = default);
static member SubnetData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * string * seq<string> * Azure.ResourceManager.Network.NetworkSecurityGroupData * Azure.ResourceManager.Network.RouteTableData * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Network.Models.ServiceEndpointProperties> * seq<Azure.ResourceManager.Network.ServiceEndpointPolicyData> * seq<Azure.ResourceManager.Network.PrivateEndpointData> * seq<Azure.ResourceManager.Network.Models.NetworkIPConfiguration> * seq<Azure.ResourceManager.Network.Models.NetworkIPConfigurationProfile> * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * seq<Azure.ResourceManager.Network.Models.ResourceNavigationLink> * seq<Azure.ResourceManager.Network.Models.ServiceAssociationLink> * seq<Azure.ResourceManager.Network.Models.ServiceDelegation> * string * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPrivateEndpointNetworkPolicy> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPrivateLinkServiceNetworkPolicy> * seq<Azure.ResourceManager.Network.Models.ApplicationGatewayIPConfiguration> * Nullable<Azure.ResourceManager.Network.Models.SharingScope> * Nullable<bool> -> Azure.ResourceManager.Network.SubnetData
Public Shared Function SubnetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional addressPrefix As String = Nothing, Optional addressPrefixes As IEnumerable(Of String) = Nothing, Optional networkSecurityGroup As NetworkSecurityGroupData = Nothing, Optional routeTable As RouteTableData = Nothing, Optional natGatewayId As ResourceIdentifier = Nothing, Optional serviceEndpoints As IEnumerable(Of ServiceEndpointProperties) = Nothing, Optional serviceEndpointPolicies As IEnumerable(Of ServiceEndpointPolicyData) = Nothing, Optional privateEndpoints As IEnumerable(Of PrivateEndpointData) = Nothing, Optional ipConfigurations As IEnumerable(Of NetworkIPConfiguration) = Nothing, Optional ipConfigurationProfiles As IEnumerable(Of NetworkIPConfigurationProfile) = Nothing, Optional ipAllocations As IEnumerable(Of WritableSubResource) = Nothing, Optional resourceNavigationLinks As IEnumerable(Of ResourceNavigationLink) = Nothing, Optional serviceAssociationLinks As IEnumerable(Of ServiceAssociationLink) = Nothing, Optional delegations As IEnumerable(Of ServiceDelegation) = Nothing, Optional purpose As String = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional privateEndpointNetworkPolicy As Nullable(Of VirtualNetworkPrivateEndpointNetworkPolicy) = Nothing, Optional privateLinkServiceNetworkPolicy As Nullable(Of VirtualNetworkPrivateLinkServiceNetworkPolicy) = Nothing, Optional applicationGatewayIPConfigurations As IEnumerable(Of ApplicationGatewayIPConfiguration) = Nothing, Optional sharingScope As Nullable(Of SharingScope) = Nothing, Optional defaultOutboundAccess As Nullable(Of Boolean) = Nothing) As SubnetData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

addressPrefix
String

The address prefix for the subnet.

addressPrefixes
IEnumerable<String>

List of address prefixes for the subnet.

networkSecurityGroup
NetworkSecurityGroupData

The reference to the NetworkSecurityGroup resource.

routeTable
RouteTableData

The reference to the RouteTable resource.

natGatewayId
ResourceIdentifier

Nat gateway associated with this subnet.

serviceEndpoints
IEnumerable<ServiceEndpointProperties>

An array of service endpoints.

serviceEndpointPolicies
IEnumerable<ServiceEndpointPolicyData>

An array of service endpoint policies.

privateEndpoints
IEnumerable<PrivateEndpointData>

An array of references to private endpoints.

ipConfigurations
IEnumerable<NetworkIPConfiguration>

An array of references to the network interface IP configurations using subnet.

ipConfigurationProfiles
IEnumerable<NetworkIPConfigurationProfile>

Array of IP configuration profiles which reference this subnet.

ipAllocations
IEnumerable<WritableSubResource>

Array of IpAllocation which reference this subnet.

resourceNavigationLinks
IEnumerable<ResourceNavigationLink>

An array of references to the external resources using subnet.

serviceAssociationLinks
IEnumerable<ServiceAssociationLink>

An array of references to services injecting into this subnet.

delegations
IEnumerable<ServiceDelegation>

An array of references to the delegations on the subnet.

purpose
String

A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the subnet resource.

privateEndpointNetworkPolicy
Nullable<VirtualNetworkPrivateEndpointNetworkPolicy>

Enable or Disable apply network policies on private end point in the subnet.

privateLinkServiceNetworkPolicy
Nullable<VirtualNetworkPrivateLinkServiceNetworkPolicy>

Enable or Disable apply network policies on private link service in the subnet.

applicationGatewayIPConfigurations
IEnumerable<ApplicationGatewayIPConfiguration>

Application gateway IP configurations of virtual network resource.

sharingScope
Nullable<SharingScope>

Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.

defaultOutboundAccess
Nullable<Boolean>

Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.

Returns

A new SubnetData instance for mocking.

Applies to