Class ServiceProfilesImpl

java.lang.Object
com.eqixiac.equinix.fabric.client.implementation.ServiceProfilesImpl
All Implemented Interfaces:
ServiceProfiles

public class ServiceProfilesImpl extends Object implements ServiceProfiles
Author:
ianjones
  • Constructor Details

    • ServiceProfilesImpl

      public ServiceProfilesImpl()
  • Method Details

    • list

      public PaginatedList<ServiceProfile> list()
      Description copied from interface: ServiceProfiles
      Lists all service profiles owned by the current account.
      Specified by:
      list in interface ServiceProfiles
      Returns:
      a paginated list of service profiles
    • search

      Description copied from interface: ServiceProfiles
      Searches for service profiles using default filter and sort criteria.
      Specified by:
      search in interface ServiceProfiles
      Returns:
      a paginated, filtered list of matching service profiles
    • search

      Description copied from interface: ServiceProfiles
      Searches for service profiles matching the specified filter criteria.
      Specified by:
      search in interface ServiceProfiles
      Parameters:
      filter - the filter criteria to apply
      Returns:
      a paginated, filtered list of matching service profiles
    • search

      Description copied from interface: ServiceProfiles
      Searches for service profiles with the specified sort order.
      Specified by:
      search in interface ServiceProfiles
      Parameters:
      sort - the sort criteria to apply
      Returns:
      a paginated, filtered list of matching service profiles
    • search

      Description copied from interface: ServiceProfiles
      Searches for service profiles matching the specified filter and sort criteria.
      Specified by:
      search in interface ServiceProfiles
      Parameters:
      filter - the filter criteria to apply
      sort - the sort criteria to apply
      Returns:
      a paginated, filtered list of matching service profiles
    • getByUuid

      public ServiceProfile getByUuid(String uuid)
      Description copied from interface: ServiceProfiles
      Retrieves a single service profile by its unique identifier.
      Specified by:
      getByUuid in interface ServiceProfiles
      Parameters:
      uuid - the unique identifier of the service profile
      Returns:
      the service profile matching the given UUID
    • define

      Description copied from interface: ServiceProfiles
      Begins the fluent builder for creating a new service profile. Call methods on the returned builder to configure the profile, then call create().
      Specified by:
      define in interface ServiceProfiles
      Parameters:
      serviceProfileType - the type of service profile to create
      Returns:
      a builder for configuring the new service profile
    • update

      Description copied from interface: ServiceProfiles
      Begins a fluent PATCH update of an existing service profile, e.g. serviceProfiles.update(uuid).name("New-Name").save().
      Specified by:
      update in interface ServiceProfiles
      Parameters:
      uuid - the unique identifier of the service profile to update
      Returns:
      a fluent updater
    • createAction

      public ServiceProfileAction createAction(String uuid, String type, String description)
      Description copied from interface: ServiceProfiles
      Accepts or rejects a pending update on a service profile.
      Specified by:
      createAction in interface ServiceProfiles
      Parameters:
      uuid - the unique identifier of the service profile
      type - the action type (for example PROFILE_UPDATE_ACCEPTANCE or PROFILE_UPDATE_REJECTION)
      description - an optional description for the action (may be null)
      Returns:
      the action result
    • getMetros

      public List<ServiceMetro> getMetros(String uuid)
      Description copied from interface: ServiceProfiles
      Lists the metros in which a service profile is available.
      Specified by:
      getMetros in interface ServiceProfiles
      Parameters:
      uuid - the unique identifier of the service profile
      Returns:
      the list of service metros
    • getEnvironments

      public List<ProviderEnvironment> getEnvironments(String serviceProfileUuid)
      Description copied from interface: ServiceProfiles
      Lists the provider environments of an IC_PROFILE service profile: GET /fabric/v4/serviceProfiles/{serviceProfileId}/environments (catalog operation getServiceProfileEnvironmentsByUuid).

      The endpoint is paginated with offset/limit query parameters. This method follows the server-reported pagination and issues one GET per page until the last page, so the returned list holds every environment. The list is an unmodifiable snapshot. A failure on any page propagates as EquinixServiceException (or its status-specific subclass) and no partial list is returned.

      The same objects are embedded in ServiceProfile.getEnvironments() when the profile itself is fetched.

      Beta: the operation and the ProviderEnvironment schema carry the Fabric v4 catalog's Beta marker (catalog fetched 2026-09-21). The behaviour for a profile whose type is not IC_PROFILE is not documented.

      Declared default so implementations of this interface written before the method existed still compile. The default throws; the client returned by Fabric.serviceProfiles() overrides it.

      Specified by:
      getEnvironments in interface ServiceProfiles
      Parameters:
      serviceProfileUuid - the unique identifier of the service profile
      Returns:
      every provider environment of the profile; empty if there are none
    • validateActivationKey

      public EnvironmentActionResponse validateActivationKey(String serviceProfileUuid, String environmentUuid, ActivationKeyDetails keyDetails)
      Description copied from interface: ServiceProfiles
      Variant of ServiceProfiles.validateActivationKey(String, String, String) that sends a caller-built keyDetails object. The ActivationKeyDetails schema marks no property required or read-only, so providerId, accountId, bandwidth (Mbps) and region can be sent with value. Null properties are omitted.

      Beta: the catalog's only request example sends value alone. How the service treats the other properties on a request is unverified.

      Declared default for the same reason as ServiceProfiles.getEnvironments(String). The default throws; the client returned by Fabric.serviceProfiles() overrides it.

      Specified by:
      validateActivationKey in interface ServiceProfiles
      Parameters:
      serviceProfileUuid - the unique identifier of the IC_PROFILE service profile
      environmentUuid - the provider environment identifier
      keyDetails - the activation key details to send
      Returns:
      the action response