Skip to content

Commit

Permalink
Merge branch 'main' into ml-overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Sep 25, 2024
2 parents 15521c8 + ead5fe8 commit f98287f
Show file tree
Hide file tree
Showing 39 changed files with 4,461 additions and 1,081 deletions.
123 changes: 121 additions & 2 deletions docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ actions:
examples:
resetFeaturesResponseExample1:
$ref: "../../specification/features/reset_features/ResetFeaturesResponseExample1.json"
- target: "$.components['requestBodies']['cluster.allocation_explain']"
- target: "$.components['requestBodies']['cluster.allocation_explain']"
description: "Add examples for cluster allocation explain operation"
update:
content:
Expand Down Expand Up @@ -107,4 +107,123 @@ actions:
application/json:
examples:
nodesInfoResponseExample1:
$ref: "../../specification/nodes/info/nodesInfoResponseExample1.yaml"
$ref: "../../specification/nodes/info/nodesInfoResponseExample1.yaml"
- target: "$.paths['/_ilm/policy/{policy}']['delete']"
description: "Add examples for delete lifecycle policy operation"
update:
responses:
200:
content:
application/json:
examples:
deleteLifecycleResponseExample1:
$ref: "../../specification/ilm/delete_lifecycle/DeleteLifecycleResponseExample1.json"
- target: "$.paths['/_ilm/policy/{policy}']['put']"
description: "Add examples for create a lifecycle operation"
update:
update:
requestBody:
content:
application/json:
examples:
putLifecycleRequestExample1:
$ref: "../../specification/ilm/put_lifecycle/PutLifecycleRequestExample1.json"
responses:
200:
content:
application/json:
examples:
putLifecycleResponseExample1:
$ref: "../../specification/ilm/put_lifecycle/PutLifecycleResponseExample1.json"
- target: "$.components['responses']['ilm.get_lifecycle#200']"
description: "Add examples for get lifecycle policy operation"
update:
content:
application/json:
examples:
getLifecycleResponseExample1:
$ref: "../../specification/ilm/get_lifecycle/GetLifecycleResponseExample1.json"
- target: "$.paths['/_ilm/migrate_to_data_tiers']['post']"
description: "Add examples for migrate to data tiers routing operation"
update:
update:
requestBody:
content:
application/json:
examples:
migrateToDataTiersRequestExample1:
$ref: "../../specification/ilm/migrate_to_data_tiers/MigrateToDataTiersRequestExample1.json"
responses:
200:
content:
application/json:
examples:
migrateToDataTiersResponseExample1:
$ref: "../../specification/ilm/migrate_to_data_tiers/MigrateToDataTiersResponseExample1.json"
- target: "$.paths['/_ilm/move/{index}']['post']"
description: "Add examples for move to lifecycle step operation"
update:
update:
requestBody:
content:
application/json:
examples:
moveToStepRequestExample1:
$ref: "../../specification/ilm/move_to_step/MoveToStepRequestExample1.json"
responses:
200:
content:
application/json:
examples:
moveToStepResponseExample1:
$ref: "../../specification/ilm/move_to_step/MoveToStepResponseExample1.json"
- target: "$.paths['/_ilm/start']['post']"
description: "Add examples for start index lifecycle management operation"
update:
responses:
200:
content:
application/json:
examples:
startILMResponseExample1:
$ref: "../../specification/ilm/start/StartILMResponseExample1.json"
- target: "$.paths['/_ilm/stop']['post']"
description: "Add examples for stop index lifecycle management operation"
update:
responses:
200:
content:
application/json:
examples:
stopILMResponseExample1:
$ref: "../../specification/ilm/stop/stopILMResponseExample1.json"
- target: "$.paths['/_ilm/status']['get']"
description: "Add examples for get index lifecycle management status operation"
update:
responses:
200:
content:
application/json:
examples:
getILMStatusResponseExample1:
$ref: "../../specification/ilm/get_status/GetILMStatusResponseExample1.json"
- target: "$.paths['/{index}/_ilm/explain']['get']"
description: "Add examples for explain lifecycle operation"
update:
responses:
200:
content:
application/json:
examples:
explainLifecycleResponseExample1:
$ref: "../../specification/ilm/explain_lifecycle/ExplainLifecycleResponseExample1.json"
- target: "$.paths['/{index}/_ilm/remove']['post']"
description: "Add examples for remove policy from index operation"
update:
responses:
200:
content:
application/json:
examples:
removePolicyResponseExample1:
$ref: "../../specification/ilm/remove_policy/RemovePolicyResponseExample1.json"
8 changes: 8 additions & 0 deletions docs/overlays/elasticsearch-shared-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,11 @@ actions:
examples:
esqlQueryRequestExample1:
$ref: "../../specification/esql/query/EsqlQueryApiRequestExample1.json"
- target: "$.components['requestBodies']['graph.explore']"
description: "Add example for graph explore request"
update:
content:
application/json:
examples:
graphExploreRequestExample1:
$ref: "../../specification/graph/explore/graphExploreRequestExample1.json"
Loading

0 comments on commit f98287f

Please sign in to comment.