-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[HLRC][ML] Add ML delete model snapshot API #35537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HLRC][ML] Add ML delete model snapshot API #35537
Conversation
Pinging @elastic/ml-core |
Pinging @elastic/es-core-infra |
…e/add-ml-delete-model-snapshot-to-hlrc
public class DeleteModelSnapshotRequest extends ActionRequest { | ||
|
||
private String jobId; | ||
private String snapshotId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these should be final
*/ | ||
public void setSnapshotId(String snapshotId) { | ||
this.snapshotId = Objects.requireNonNull(snapshotId, "[snapshot_id] must not be null"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure these setters are necessary, there is only one constructor and it requires both parameters to be set anyways.
…e/add-ml-delete-model-snapshot-to-hlrc
Relates #29827