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

    Fields
    Modifier and Type
    Field
    Description
    static final PublicNetworkAccess
    You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll.
    static final PublicNetworkAccess
    You 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
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates or finds a PublicNetworkAccess from its string representation.
    Gets known PublicNetworkAccess values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ENABLED

      public static final PublicNetworkAccess 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

      public static final PublicNetworkAccess 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 public PublicNetworkAccess()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of PublicNetworkAccess value.
  • Method Details

    • fromString

      public static PublicNetworkAccess fromString(String name)
      Creates or finds a PublicNetworkAccess from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding PublicNetworkAccess.
    • values

      public static Collection<PublicNetworkAccess> values()
      Gets known PublicNetworkAccess values.
      Returns:
      known PublicNetworkAccess values.