Class PrecisionTimesImpl
java.lang.Object
com.eqixiac.equinix.fabric.client.implementation.PrecisionTimesImpl
- All Implemented Interfaces:
PrecisionTimes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefine()Begins the fluent builder for creating a new precision time service.fulfill(String uuid, TimeServiceFulfillRequest request) Fulfills (provisions) an existing precision time service with a fullprecisionTimeServiceRequestbody, allowing the requiredtype,name,packageandipv4properties (and the optional NTP / PTP advanced configuration, project and order) to be supplied alongside the connections.Fulfills (provisions) an existing precision time service by attaching the given Fabric connections to it.Retrieves a single precision time service by its unique identifier.getConnections(String serviceId) Lists the L2 connections associated with a precision time service instance.list()Lists precision time services throughPOST /fabric/v4/timeServices/searchwith an empty filter.packageByCode(PrecisionTimePackageCode packageCode) Retrieves a single precision time service package by its package code.packages()Lists the available precision time service packages (NTP/PTP, standard/enterprise).search(FilterPropertyList filter, SortPropertyList sort) Searches precision time services (POST /fabric/v4/timeServices/search).
-
Constructor Details
-
PrecisionTimesImpl
public PrecisionTimesImpl()
-
-
Method Details
-
list
Description copied from interface:PrecisionTimesLists precision time services throughPOST /fabric/v4/timeServices/searchwith an empty filter. The specification documents/project/projectIdas a mandatory filter property, so preferPrecisionTimes.search(FilterPropertyList, SortPropertyList)with a project filter; the service may reject an unfiltered search.- Specified by:
listin interfacePrecisionTimes- Returns:
- a paginated list of precision time services
-
search
public PaginatedFilteredList<PrecisionTime> search(FilterPropertyList filter, SortPropertyList sort) Description copied from interface:PrecisionTimesSearches precision time services (POST /fabric/v4/timeServices/search). Filter properties:/project/projectId(mandatory per the spec),/name,/uuid,/type,/state,/account/accountNumber,/package/code.- Specified by:
searchin interfacePrecisionTimes- Parameters:
filter- the search filtersort- the sort criteria, may benull- Returns:
- the matching services, paged
-
getByUuid
Description copied from interface:PrecisionTimesRetrieves a single precision time service by its unique identifier.- Specified by:
getByUuidin interfacePrecisionTimes- Parameters:
uuid- the unique identifier of the precision time service- Returns:
- the precision time service matching the given UUID
-
define
Description copied from interface:PrecisionTimesBegins the fluent builder for creating a new precision time service. Call methods on the returned builder to configure the service, then callcreate().- Specified by:
definein interfacePrecisionTimes- Returns:
- a builder for configuring the new precision time service
-
packages
Description copied from interface:PrecisionTimesLists the available precision time service packages (NTP/PTP, standard/enterprise).- Specified by:
packagesin interfacePrecisionTimes- Returns:
- the list of time service packages
-
packageByCode
Description copied from interface:PrecisionTimesRetrieves a single precision time service package by its package code.- Specified by:
packageByCodein interfacePrecisionTimes- Parameters:
packageCode- the package code- Returns:
- the time service package matching the given code
-
getConnections
Description copied from interface:PrecisionTimesLists the L2 connections associated with a precision time service instance.- Specified by:
getConnectionsin interfacePrecisionTimes- Parameters:
serviceId- the unique identifier of the precision time service- Returns:
- the list of connection links
-
fulfill
Description copied from interface:PrecisionTimesFulfills (provisions) an existing precision time service by attaching the given Fabric connections to it.- Specified by:
fulfillin interfacePrecisionTimes- Parameters:
uuid- the unique identifier of the precision time serviceconnectionUuids- the Fabric connection UUIDs to attach- Returns:
- the updated precision time service
-
fulfill
Description copied from interface:PrecisionTimesFulfills (provisions) an existing precision time service with a fullprecisionTimeServiceRequestbody, allowing the requiredtype,name,packageandipv4properties (and the optional NTP / PTP advanced configuration, project and order) to be supplied alongside the connections.- Specified by:
fulfillin interfacePrecisionTimes- Parameters:
uuid- the unique identifier of the precision time servicerequest- the fulfillment request body- Returns:
- the updated precision time service
-