Class NetworkAccessPolicy
java.lang.Object
com.azure.core.util.ExpandableStringEnum<NetworkAccessPolicy>
com.azure.resourcemanager.compute.models.NetworkAccessPolicy
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class NetworkAccessPolicy
extends com.azure.core.util.ExpandableStringEnum<NetworkAccessPolicy>
Policy for accessing the disk via network.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkAccessPolicyThe disk can be exported or uploaded to from any network.static final NetworkAccessPolicyThe disk can be exported or uploaded to using a DiskAccess resource's private endpoints.static final NetworkAccessPolicyThe disk cannot be exported. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkAccessPolicyfromString(String name) Creates or finds a NetworkAccessPolicy from its string representation.static Collection<NetworkAccessPolicy> values()Gets known NetworkAccessPolicy values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ALLOW_ALL
The disk can be exported or uploaded to from any network. -
ALLOW_PRIVATE
The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. -
DENY_ALL
The disk cannot be exported.
-
-
Constructor Details
-
NetworkAccessPolicy
Deprecated.Use thefromString(String)factory method.Creates a new instance of NetworkAccessPolicy value.
-
-
Method Details
-
fromString
Creates or finds a NetworkAccessPolicy from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding NetworkAccessPolicy.
-
values
Gets known NetworkAccessPolicy values.- Returns:
- known NetworkAccessPolicy values.
-
fromString(String)factory method.