Enum GHRepository.Visibility

java.lang.Object
java.lang.Enum<GHRepository.Visibility>
org.kohsuke.github.GHRepository.Visibility
All Implemented Interfaces:
Serializable, Comparable<GHRepository.Visibility>
Enclosing class:
GHRepository

public static enum GHRepository.Visibility extends Enum<GHRepository.Visibility>
Visibility of a repository.
  • Enum Constant Details

    • PUBLIC

      public static final GHRepository.Visibility PUBLIC
      The public.
    • INTERNAL

      public static final GHRepository.Visibility INTERNAL
      The internal.
    • PRIVATE

      public static final GHRepository.Visibility PRIVATE
      The private.
    • UNKNOWN

      public static final GHRepository.Visibility UNKNOWN
      Placeholder for unexpected data values. This avoids throwing exceptions during data binding or reading when the list of allowed values returned from GitHub is expanded. Do not pass this value to any methods. If this value is returned during a request, check the log output and report an issue for the missing value.
  • Method Details

    • values

      public static GHRepository.Visibility[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GHRepository.Visibility valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • from

      public static GHRepository.Visibility from(String value)
      From.
      Parameters:
      value - the value
      Returns:
      the visibility
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Enum<GHRepository.Visibility>
      Returns:
      the string