Class InternetAccessServicesImpl

java.lang.Object
com.eqixiac.equinix.internetaccess.client.implementation.InternetAccessServicesImpl
All Implemented Interfaces:
InternetAccessServices

public class InternetAccessServicesImpl extends Object implements InternetAccessServices
  • Constructor Details

    • InternetAccessServicesImpl

      public InternetAccessServicesImpl()
  • Method Details

    • define

      Description copied from interface: InternetAccessServices
      Returns a builder for defining and creating a new Equinix Internet Access v2 service.
      Specified by:
      define in interface InternetAccessServices
      Returns:
      an internet access service builder
    • getByUuid

      public InternetAccessService getByUuid(String serviceId)
      Description copied from interface: InternetAccessServices
      Retrieves a single Equinix Internet Access v2 service by its unique identifier.
      Specified by:
      getByUuid in interface InternetAccessServices
      Parameters:
      serviceId - the unique identifier of the service
      Returns:
      the service matching the given identifier
    • update

      public InternetAccessService update(String serviceId, List<ChangeOperationUpdate> operations)
      Description copied from interface: InternetAccessServices
      Updates the mutable properties of an Equinix Internet Access v2 service by applying the supplied change operations (for example replacing /bandwidth).
      Specified by:
      update in interface InternetAccessServices
      Parameters:
      serviceId - the unique identifier of the service to update
      operations - the change operations to apply
      Returns:
      the updated service
    • update

      public InternetAccessService update(String serviceId, List<ChangeOperationUpdate> operations, boolean dryRun)
      Description copied from interface: InternetAccessServices
      Updates the mutable properties of an Equinix Internet Access v2 service, optionally in validate-only mode.

      Per the updateEquinixInternetAccess spec, dryRun is an optional boolean query parameter with no default: "Setting this parameter to true will perform only request validation without actually updating the service". When dryRun is false the parameter is omitted from the request entirely.

      Specified by:
      update in interface InternetAccessServices
      Parameters:
      serviceId - the unique identifier of the service to update
      operations - the change operations to apply
      dryRun - if true, sends dryRun=true so the request is only validated and the service is not updated; if false, the parameter is omitted
      Returns:
      the updated (or, in dry-run mode, the validated) service
    • delete

      public Boolean delete(String serviceId)
      Description copied from interface: InternetAccessServices
      Deletes an Equinix Internet Access v2 service by its unique identifier.
      Specified by:
      delete in interface InternetAccessServices
      Parameters:
      serviceId - the unique identifier of the service to delete
      Returns:
      true if the deletion request was accepted
    • delete

      public Boolean delete(String serviceId, boolean dryRun)
      Description copied from interface: InternetAccessServices
      Deletes an Equinix Internet Access v2 service, optionally in validate-only mode.

      Per the deleteEquinixInternetAccess spec, dryRun is an optional boolean query parameter with no default: "Setting this parameter to true will perform only request validation without actually deleting the service". When dryRun is false the parameter is omitted from the request entirely. The 202 response carries no body.

      Specified by:
      delete in interface InternetAccessServices
      Parameters:
      serviceId - the unique identifier of the service to delete
      dryRun - if true, sends dryRun=true so the request is only validated and the service is not deleted; if false, the parameter is omitted
      Returns:
      true if the (deletion or validation) request was accepted
    • search

      Description copied from interface: InternetAccessServices
      Searches for Equinix Internet Access v2 services matching the specified filter criteria.
      Specified by:
      search in interface InternetAccessServices
      Parameters:
      searchRequest - the search filter criteria
      Returns:
      a paginated, filtered list of matching services