Class Format

java.lang.Object
com.azure.core.util.ExpandableStringEnum<Format>
com.azure.resourcemanager.containerservice.models.Format
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class Format extends com.azure.core.util.ExpandableStringEnum<Format>
The format of the kubeconfig credential.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Format
    Return azure auth-provider kubeconfig.
    static final Format
    Return exec format kubeconfig.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Format
    Creates or finds a Format from its string representation.
    Gets known Format 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

    • AZURE

      public static final Format AZURE
      Return azure auth-provider kubeconfig. This format is deprecated in v1.22 and will be fully removed in v1.26. See: https://aka.ms/k8s/changes-1-26.
    • EXEC

      public static final Format EXEC
      Return exec format kubeconfig. This format requires kubelogin binary in the path.
  • Constructor Details

  • Method Details

    • fromString

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

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