Class ServiceTokenOperator.ServiceTokenUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.ServiceTokenOperator.ServiceTokenUpdater
- Enclosing class:
ServiceTokenOperator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) dryRun()Marks this update as a dry run:save()sends the same change-operationsPATCHto/fabric/v4/serviceTokens/{uuid}with thedryRun=truequery parameter — per the Fabric v4 spec, an "option to verify that API calls will succeed".expirationDateTime(LocalDateTime expirationDateTime) Replaces the expiration date and time (/expirationDateTime, the path the spec'sServiceTokenChangeOperationexample uses).patch(PatchOperation operation) save()
-
Constructor Details
-
ServiceTokenUpdater
-
-
Method Details
-
name
-
description
-
expirationDateTime
public ServiceTokenOperator.ServiceTokenUpdater expirationDateTime(LocalDateTime expirationDateTime) Replaces the expiration date and time (/expirationDateTime, the path the spec'sServiceTokenChangeOperationexample uses).- Parameters:
expirationDateTime- the new expiration, UTC wall clock- Returns:
- this updater
-
patch
-
dryRun
Marks this update as a dry run:save()sends the same change-operationsPATCHto/fabric/v4/serviceTokens/{uuid}with thedryRun=truequery parameter — per the Fabric v4 spec, an "option to verify that API calls will succeed". Nothing is persisted: the API responds200with the validated/simulated token entity, whichsave()returns.- Returns:
- this builder
-
save
-