update-model-snapshot.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --
  2. :api: update-model-snapshot
  3. :request: UpdateModelSnapshotRequest
  4. :response: UpdateModelSnapshotResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Update Model Snapshot API
  8. The Update Model Snapshot API provides the ability to update a {ml} model snapshot.
  9. It accepts a +{request}+ object and responds
  10. with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Update Model Snapshot Request
  13. A +{request}+ requires the following arguments:
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new request referencing existing `jobId` and `snapshotId` values.
  19. ==== Optional Arguments
  20. The following arguments are optional:
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-description]
  24. --------------------------------------------------
  25. <1> The updated description of the {ml} model snapshot
  26. ["source","java",subs="attributes,callouts,macros"]
  27. --------------------------------------------------
  28. include-tagged::{doc-tests-file}[{api}-retain]
  29. --------------------------------------------------
  30. <1> The updated `retain` property of the {ml} model snapshot
  31. include::../execution.asciidoc[]
  32. [id="{upid}-{api}-response"]
  33. ==== Update Job Response
  34. A +{response}+ contains an acknowledgement of the update request and the full representation of the updated `ModelSnapshot` object
  35. ["source","java",subs="attributes,callouts,macros"]
  36. --------------------------------------------------
  37. include-tagged::{doc-tests-file}[{api}-response]
  38. --------------------------------------------------
  39. <1> An acknowledgement of the request
  40. <2> The updated `ModelSnapshot`