Skip to content

Commit 85ccf9a

Browse files
Update rest-api-spec main (#710)
Co-authored-by: delvedor <[email protected]>
1 parent 949e554 commit 85ccf9a

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

output/schema/schema.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"ml.put_trained_model_definition_part": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-definition-part.html",
5+
"description": "Creates part of a trained model definition"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_ml/trained_models/{model_id}/definition/{part}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"model_id": {
20+
"type": "string",
21+
"description": "The ID of the trained model for this definition part"
22+
},
23+
"part": {
24+
"type": "integer",
25+
"description": "The part number"
26+
}
27+
}
28+
}
29+
]
30+
},
31+
"body": {
32+
"description": "The trained model definition part",
33+
"required": true
34+
}
35+
}
36+
}

specification/_json_spec/ml.start_trained_model_deployment.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
"required": false,
3232
"description": "Controls the amount of time to wait for the model to deploy.",
3333
"default": "20s"
34+
},
35+
"wait_for": {
36+
"type": "string",
37+
"required": false,
38+
"description": "The allocation status for which to wait",
39+
"options": ["starting", "started", "fully_allocated"],
40+
"default": "started"
3441
}
3542
}
3643
}

0 commit comments

Comments
 (0)