Interface Updatable<T>
-
- All Known Subinterfaces:
CertificateSigningRequestResource<T>,CreateOrReplaceable<T>,EditReplacePatchable<T>,EphemeralContainersResource,ExtensibleResource<T>,ListVisitFromServerGetDeleteRecreateWaitApplicable<T>,ListVisitFromServerWritable<T>,NamespaceableResource<T>,NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<T>,NonDeletingOperation<T>,PodResource,Replaceable<T>,ReplaceDeletable<T>,Resource<T>,RollableScalableResource<T>,ScalableResource<T>,ServiceAccountResource,ServiceResource<T>,V1beta1CertificateSigningRequestResource<T>,WritableOperation<T>
- All Known Implementing Classes:
ExtensibleResourceAdapter,ResourceAdapter
public interface Updatable<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Treplace()Deprecated.useupdate()insteadTupdate()Update the server's state with the given item (PUT).
-
-
-
Method Detail
-
replace
@Deprecated T replace()
Deprecated.useupdate()insteadReplace the server's state with the given item.If
Resource.lockResourceVersion(String)has been used to lock the resourceVersion, this operation is effectively a single update attempt against that version.If
Resource.lockResourceVersion(String)has not been called, this operation will be retried a number of times in the event of a conflict. If a resourceVersion has been set on the item, the first update attempt will be made against that version. Subsequent attempts will fetch the latest resourceVersion from the server.- Returns:
- returns deserialized version of api server response
- See Also:
- Migration FAQ
-
update
T update()
Update the server's state with the given item (PUT).If the resourceVersion is on the resource, the update will be performed with optimistic locking, and may result in a conflict (409 error). If no resourceVersion is on the resource, the latest resourceVersion will be obtained from the server prior to the update call - which may still be a conflict in a rare circumstance.
- Returns:
- returns deserialized version of api server response
-
-