Class ChangeOperationUpdate
java.lang.Object
com.eqixiac.equinix.internetaccess.model.json.creators.ChangeOperationUpdate
A single change operation in the
ChangeRequest body of an Equinix Internet Access
(EIA) v2 service update (PATCH /internetAccess/v2/services/{serviceId}).
Shaped like a JSON Patch operation — {"op": ..., "path": ..., "value": ...} — but
sent as a plain application/json array (not application/json-patch+json), and
with an optional nested order.
Per the EIA v2 specification the allowed op values are replace, add
and remove, and the allowed path values are /bandwidth,
/routingProtocol/ipv4/customerRoutes[*] and
/routingProtocol/ipv6/customerRoutes[*]. Only one replace operation is allowed
for the /bandwidth path.
-
Constructor Summary
ConstructorsConstructorDescriptionChangeOperationUpdate(String op, String path, String value, ServiceOrderRequest order) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeOperationUpdateCreates anaddoperation, addingvalueatpath.static ChangeOperationUpdateCreates aremoveoperation, removing the parameter atpath.static ChangeOperationUpdateCreates areplaceoperation, settingpathtovalue.
-
Constructor Details
-
ChangeOperationUpdate
- Parameters:
op- the operation name (replace,add, orremove)path- the path to the updated parameter (e.g./bandwidth)value- the new value for the updated parameterorder- the associated service order, ornullif not applicable
-
-
Method Details
-
replace
Creates areplaceoperation, settingpathtovalue.- Parameters:
path- the path to the target parameter (e.g./bandwidth)value- the replacement value- Returns:
- the operation
-
add
Creates anaddoperation, addingvalueatpath.- Parameters:
path- the path to the target parametervalue- the value to add- Returns:
- the operation
-
remove
Creates aremoveoperation, removing the parameter atpath.- Parameters:
path- the path to the target parameter- Returns:
- the operation
-