1
0

update-model-snapshot.asciidoc 1.7 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. Provides the ability to update a {ml} model snapshot.
  9. It accepts a +{request}+ object and responds with a +{response}+ object.
  10. [id="{upid}-{api}-request"]
  11. ==== Update model snapshot request
  12. A +{request}+ requires the following arguments:
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> Constructing a new request referencing existing `jobId` and `snapshotId`
  18. 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 model snapshot 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`.