Class WorkVisitsImpl

java.lang.Object
com.eqixiac.equinix.customerportal.client.implementation.WorkVisitsImpl
All Implemented Interfaces:
WorkVisits

public class WorkVisitsImpl extends Object implements WorkVisits
  • Constructor Details

    • WorkVisitsImpl

      public WorkVisitsImpl()
  • Method Details

    • order

      public OrderResponse order(WorkVisitOrderRequest request)
      Description copied from interface: WorkVisits
      Schedules a work visit.

      Maps to POST /colocations/v2/orders/workVisits (Schedule Work Visit Services).

      Specified by:
      order in interface WorkVisits
      Parameters:
      request - the work visit order request body
      Returns:
      the order submission result carrying the generated order id
    • update

      public OrderResponse update(String orderId, WorkVisitUpdateRequest request)
      Description copied from interface: WorkVisits
      Updates a pending work visit order.

      Maps to PATCH /colocations/v2/orders/workVisits/{orderId} (Update a work visit order).

      Specified by:
      update in interface WorkVisits
      Parameters:
      orderId - the identifier of the work visit order
      request - the update request body
      Returns:
      the order submission result carrying the order id
    • listLocations

      public List<? extends LookupLocation> listLocations()
      Description copied from interface: WorkVisits
      Lists the IBX locations, cages and cabinets where the current user may place work visit orders.

      Maps to Lookup v2 GET /colocations/v2/locations?permissionCode=WORK_VISIT; the same call as lookups().listLocations("WORK_VISIT"). It replaces the end-of-life Work Visit v1 GET /v1/orders/workvisit/locations.

      Specified by:
      listLocations in interface WorkVisits
      Returns:
      the list of permitted locations
    • listLocations

      public List<? extends LookupLocation> listLocations(List<String> ibxs, Boolean details)
      Description copied from interface: WorkVisits
      Lists the work visit locations for the given IBXs, optionally with cage, cabinet and account details.

      Maps to Lookup v2 GET /colocations/v2/locations?permissionCode=WORK_VISIT.

      Specified by:
      listLocations in interface WorkVisits
      Parameters:
      ibxs - the IBX codes to filter by, or null
      details - when true, returns cage, cabinet and account details, or null for the default
      Returns:
      the list of permitted locations