Class PublicNetworkAccess
java.lang.Object
com.azure.core.util.ExpandableStringEnum<PublicNetworkAccess>
com.azure.resourcemanager.compute.models.PublicNetworkAccess
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class PublicNetworkAccess
extends com.azure.core.util.ExpandableStringEnum<PublicNetworkAccess>
Policy for controlling export on the disk.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PublicNetworkAccessYou cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll.static final PublicNetworkAccessYou can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicNetworkAccessfromString(String name) Creates or finds a PublicNetworkAccess from its string representation.static Collection<PublicNetworkAccess> values()Gets known PublicNetworkAccess values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ENABLED
You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. -
DISABLED
You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.
-
-
Constructor Details
-
PublicNetworkAccess
Deprecated.Use thefromString(String)factory method.Creates a new instance of PublicNetworkAccess value.
-
-
Method Details
-
fromString
Creates or finds a PublicNetworkAccess from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding PublicNetworkAccess.
-
values
Gets known PublicNetworkAccess values.- Returns:
- known PublicNetworkAccess values.
-
fromString(String)factory method.