Interface NetworkPeering
-
- All Superinterfaces:
com.microsoft.azure.management.resources.fluentcore.arm.models.HasId,com.microsoft.azure.management.resources.fluentcore.model.HasInner<com.microsoft.azure.management.network.implementation.VirtualNetworkPeeringInner>,com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager<com.microsoft.azure.management.network.implementation.NetworkManager>,com.microsoft.azure.management.resources.fluentcore.arm.models.HasName,com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup,com.microsoft.azure.management.resources.fluentcore.arm.models.IndependentChild<com.microsoft.azure.management.network.implementation.NetworkManager>,com.microsoft.azure.management.resources.fluentcore.model.Indexable,com.microsoft.azure.management.resources.fluentcore.model.Refreshable<NetworkPeering>,com.microsoft.azure.management.resources.fluentcore.model.Updatable<NetworkPeering.Update>
@Beta(V1_3_0) public interface NetworkPeering extends com.microsoft.azure.management.resources.fluentcore.arm.models.IndependentChild<com.microsoft.azure.management.network.implementation.NetworkManager>, com.microsoft.azure.management.resources.fluentcore.model.HasInner<com.microsoft.azure.management.network.implementation.VirtualNetworkPeeringInner>, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<NetworkPeering>, com.microsoft.azure.management.resources.fluentcore.model.Updatable<NetworkPeering.Update>
An client-side representation of a network peering.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceNetworkPeering.DefinitionThe entirety of the network peering definition.static interfaceNetworkPeering.DefinitionStagesGrouping of all the network peering definition stages.static interfaceNetworkPeering.UpdateThe template for a network peering update operation, containing all the settings that can be modified.static interfaceNetworkPeering.UpdateStagesGrouping of all the network peering update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckAccessBetweenNetworks()NetworkPeeringGatewayUsegatewayUse()NetworkgetRemoteNetwork()rx.Observable<Network>getRemoteNetworkAsync()Gets the remote network associated with this peering asynchronously.NetworkPeeringgetRemotePeering()rx.Observable<NetworkPeering>getRemotePeeringAsync()Gets the associated matching peering on the remote network if it is in the same subscription.booleanisSameSubscription()booleanisTrafficForwardingFromRemoteNetworkAllowed()StringnetworkId()List<String>remoteAddressSpaces()StringremoteNetworkId()VirtualNetworkPeeringStatestate()-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
-
-
-
-
Method Detail
-
networkId
String networkId()
- Returns:
- the local virtual network's ID
-
remoteAddressSpaces
@Beta(V1_10_0) List<String> remoteAddressSpaces()
- Returns:
- the reference of the remote virtual network address space
-
checkAccessBetweenNetworks
boolean checkAccessBetweenNetworks()
- Returns:
- true if the peering enables IP addresses within the peered networks to be accessible from both networks, otherwise false
(Note this method makes a separate call to Azure.)
-
remoteNetworkId
String remoteNetworkId()
- Returns:
- the associated remote virtual network's ID
-
getRemoteNetwork
Network getRemoteNetwork()
- Returns:
- the remote network if it is in the same subscription, otherwise null.
-
getRemoteNetworkAsync
rx.Observable<Network> getRemoteNetworkAsync()
Gets the remote network associated with this peering asynchronously.- Returns:
- a representation of the future computation of this call
-
getRemotePeering
NetworkPeering getRemotePeering()
- Returns:
- the associated matching peering on the remote network if it is in the same subscription, otherwise this future computation will evaluate to null.
-
getRemotePeeringAsync
rx.Observable<NetworkPeering> getRemotePeeringAsync()
Gets the associated matching peering on the remote network if it is in the same subscription.- Returns:
- a representation of the future computation of this call.
-
state
VirtualNetworkPeeringState state()
- Returns:
- the state of the peering between the two networks
-
gatewayUse
NetworkPeeringGatewayUse gatewayUse()
- Returns:
- the type of gateway use enabled for this network
-
isTrafficForwardingFromRemoteNetworkAllowed
boolean isTrafficForwardingFromRemoteNetworkAllowed()
- Returns:
- true if traffic forwarding from the remote network is allowed into this network
-
isSameSubscription
boolean isSameSubscription()
- Returns:
- true if the peered networks are in the same subscription, otherwise false
-
-