Enum Class ChangeType

java.lang.Object
java.lang.Enum<ChangeType>
com.eqixiac.equinix.mcp.server.broker.ChangeType
All Implemented Interfaces:
Serializable, Comparable<ChangeType>, Constable

public enum ChangeType extends Enum<ChangeType>
The mutations the Safe Mutation Broker can carry - deliberately the smallest honest set: three creates, each backed by a spec-documented Fabric v4 dry run the propose phase exercises for real. There are no update change types at launch and, by policy, no delete change types ever.
  • Enum Constant Details

    • CONNECTION_CREATE

      public static final ChangeType CONNECTION_CREATE
      Create a Fabric connection (POST /fabric/v4/connections).
    • NETWORK_CREATE

      public static final ChangeType NETWORK_CREATE
      Create a Fabric network (POST /fabric/v4/networks).
    • SERVICE_TOKEN_CREATE

      public static final ChangeType SERVICE_TOKEN_CREATE
      Create a Fabric service token (POST /fabric/v4/serviceTokens).
  • Method Details

    • values

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

      public static ChangeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public String id()
      Returns:
      the stable snake_case id used on the tool wire (e.g. connection_create)
    • ids

      public static String[] ids()
      Returns:
      every change-type id, in declaration order, for schema enums
    • fromId

      public static ChangeType fromId(String value)
      Parses a change-type id (case-insensitive; the enum constant name is accepted too).
      Parameters:
      value - the id, e.g. "connection_create"
      Returns:
      the matching change type
      Throws:
      IllegalArgumentException - if the id is unknown, listing the valid ids