Class DeviceWrapper

java.lang.Object
com.eqixiac.equinix.core.model.ResourceImpl<Device>
com.eqixiac.equinix.networkedge.model.wrappers.DeviceWrapper
All Implemented Interfaces:
Resource<Device>, Device

public class DeviceWrapper extends ResourceImpl<Device> implements Device
Author:
ianjones
  • Constructor Details

  • Method Details

    • getPricing

      public Pricing getPricing()
      Specified by:
      getPricing in interface Device
    • restoreFromBackup

      public Boolean restoreFromBackup(Backup backup)
      Specified by:
      restoreFromBackup in interface Device
    • restoreFromBackup

      public Boolean restoreFromBackup(String backupUuid, String backupName)
      Specified by:
      restoreFromBackup in interface Device
      Parameters:
      backupName - the name of the backup (DeviceBackupUpdateRequest.name), required by the API.
    • updateAdditionalBandwidth

      public Boolean updateAdditionalBandwidth(Integer additionalBandwidth)
      Specified by:
      updateAdditionalBandwidth in interface Device
    • postLicenseFile

      public String postLicenseFile(String fileContents)
    • updateLicenseToken

      public String updateLicenseToken(String licenseToken)
    • ping

      public Boolean ping()
      Specified by:
      ping in interface Device
    • update

      Specified by:
      update in interface Device
    • save

      public Boolean save(DeviceUpdaterJson updaterJson)
      Specified by:
      save in interface Device
    • delete

      public Boolean delete()
      Description copied from interface: Device
      Deletes the device (DELETE /ne/v1/devices/{uuid}). The wrapper keeps its last known state, so getters still work afterwards.
      Specified by:
      delete in interface Device
      Returns:
      true when the deletion was accepted
    • delete

      public Boolean delete(DeviceDeleteRequest request)
      Description copied from interface: Device
      Deletes the device with the spec's options: deleteRedundantDevice for a redundant pair and the deletionInfo deactivation keys (Palo Alto BYOL).
      Specified by:
      delete in interface Device
      Parameters:
      request - the delete options
      Returns:
      true when the deletion was accepted
    • refresh

      public Boolean refresh()
      Specified by:
      refresh in interface Device