Class DeviceDeleteRequest

java.lang.Object
com.eqixiac.equinix.networkedge.model.json.creators.DeviceDeleteRequest

public class DeviceDeleteRequest extends Object
Options for DELETE /ne/v1/devices/{uuid}: the deleteRedundantDevice query parameter and the optional deletionInfo body (VirtualDeviceDeleteRequest).

Per the spec, a redundant pair must be deleted with deleteRedundantDevice=true so both devices go together, and a Palo Alto BYOL device needs its deactivation key (for the secondary too) or the licence must be released through the vendor.

  • Constructor Details

    • DeviceDeleteRequest

      public DeviceDeleteRequest()
  • Method Details

    • deleteRedundantDevice

      public DeviceDeleteRequest deleteRedundantDevice(boolean deleteRedundantDevice)
      Sets deleteRedundantDevice: delete the primary and secondary of a pair together.
      Parameters:
      deleteRedundantDevice - true for a redundant pair
      Returns:
      this request
    • deactivationKey

      public DeviceDeleteRequest deactivationKey(String deactivationKey)
      Sets the (primary) device's licence deactivation key.
      Parameters:
      deactivationKey - the deactivation key
      Returns:
      this request
    • secondaryDeactivationKey

      public DeviceDeleteRequest secondaryDeactivationKey(String deactivationKey)
      Sets the secondary device's licence deactivation key (secondary.deactivationKey).
      Parameters:
      deactivationKey - the secondary device's deactivation key
      Returns:
      this request
    • hasBody

      public boolean hasBody()
      Whether a body needs to be sent.
      Returns:
      true when a deactivation key is set