Skip to content

Commit bf22312

Browse files
Resolving merge conflicts
2 parents 02219ba + 962b973 commit bf22312

File tree

185 files changed

+6948
-4524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+6948
-4524
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 203 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ actions:
121121
examples:
122122
postBehavioralAnalyticsEventRequestExample1:
123123
$ref: "../../specification/search_application/post_behavioral_analytics_event/examples/request/BehavioralAnalyticsEventPostRequestExample1.yaml"
124+
## Examples for cat
125+
- target: "$.components['responses']['cat.thread_pool#200']"
126+
description: "Add example for cat thread pool response"
127+
update:
128+
content:
129+
text/plain:
130+
schema:
131+
type: string
132+
examples:
133+
catThreadPoolResponseExample1:
134+
$ref: "../../specification/cat/thread_pool/examples/200_response/CatThreadPoolResponseExample1.yaml"
135+
catThreadPoolResponseExample2:
136+
$ref: "../../specification/cat/thread_pool/examples/200_response/CatThreadPoolResponseExample2.yaml"
124137
## Examples for ccr
125138
- target: "$.paths['/{index}/_ccr/follow']['put']"
126139
description: "Add examples for create follower operation"
@@ -145,14 +158,14 @@ actions:
145158
content:
146159
application/json:
147160
examples:
148-
createFollowIndexRequestExample1:
161+
forgetFollowerRequestExample1:
149162
$ref: "../../specification/ccr/forget_follower/examples/request/ForgetFollowerIndexRequestExample1.yaml"
150163
responses:
151164
200:
152165
content:
153166
application/json:
154167
examples:
155-
createFollowIndexResponseExample1:
168+
forgetFollowerResponseExample1:
156169
$ref: "../../specification/ccr/forget_follower/examples/response/ForgetFollowerIndexResponseExample1.yaml"
157170
- target: "$.paths['/_ccr/auto_follow/{name}']['put']"
158171
description: "Add examples for create auto-follow pattern operation"
@@ -186,15 +199,97 @@ actions:
186199
examples:
187200
resumeFollowIndexResponseExample1:
188201
$ref: "../../specification/ccr/resume_follow/examples/response/ResumeFollowIndexResponseExample1.yaml"
189-
## Examples for cluster
190-
- target: "$.components['requestBodies']['cluster.allocation_explain']"
191-
description: "Add example for cluster allocation exaplain request"
192-
update:
202+
- target: "$.paths['/{index}/_ccr/unfollow']['post']"
203+
description: "Add examples for unfollow an index"
204+
update:
205+
responses:
206+
200:
207+
content:
208+
application/json:
209+
examples:
210+
ccrUnfollowIndexResponseExample1:
211+
$ref: "../../specification/ccr/unfollow/examples/response/UnfollowIndexResponseExample1.yaml"
212+
- target: "$.paths['/_ccr/stats']['get']"
213+
description: "Add examples for get ccr stats"
214+
update:
215+
responses:
216+
200:
217+
content:
218+
application/json:
219+
examples:
220+
ccrStatsResponseExample1:
221+
$ref: "../../specification/ccr/stats/examples/response/CcrStatsResponseExample1.yaml"
222+
- target: "$.paths['/_ccr/auto_follow/{name}/resume']['post']"
223+
description: "Add examples for resume auto-follow pattern"
224+
update:
225+
responses:
226+
200:
227+
content:
228+
application/json:
229+
examples:
230+
ccrResumeAutoFollowResponseExample1:
231+
$ref: "../../specification/ccr/resume_auto_follow_pattern/examples/response/ResumeAutoFollowPatternResponseExample1.yaml"
232+
- target: "$.paths['/{index}/_ccr/pause_follow']['post']"
233+
description: "Add examples for resume auto-follow pattern"
234+
update:
235+
responses:
236+
200:
237+
content:
238+
application/json:
239+
examples:
240+
ccrPauseFollowResponseExample1:
241+
$ref: "../../specification/ccr/pause_follow/examples/response/PauseFollowIndexResponseExample1.yaml"
242+
- target: "$.paths['/_ccr/auto_follow/{name}/pause']['post']"
243+
description: "Add examples for pause auto-follow pattern"
244+
update:
245+
responses:
246+
200:
247+
content:
248+
application/json:
249+
examples:
250+
ccrPauseAutoFollowPatternResponseExample1:
251+
$ref: "../../specification/ccr/pause_auto_follow_pattern/examples/response/PauseAutoFollowPatternResponseExample1.yaml"
252+
- target: "$.components['responses']['ccr.get_auto_follow_pattern#200']"
253+
description: "Add examples for get auto-follow pattern"
254+
update:
193255
content:
194256
application/json:
195257
examples:
196-
clusterAllocationExplainRequestExample1:
197-
$ref: "../../specification/cluster/allocation_explain/examples/request/ClusterAllocationExplainRequestExample1.yaml"
258+
ccrPauseAutoFollowPatternResponseExample1:
259+
$ref: "../../specification/ccr/get_auto_follow_pattern/examples/response/GetAutoFollowPatternResponseExample1.yaml"
260+
- target: "$.paths['/{index}/_ccr/stats']['get']"
261+
description: "Add examples for get follower stats"
262+
update:
263+
responses:
264+
200:
265+
content:
266+
application/json:
267+
examples:
268+
ccrFollowerStatsResponseExample1:
269+
$ref: "../../specification/ccr/follow_stats/examples/response/FollowIndexStatsResponseExample1.yaml"
270+
- target: "$.paths['/{index}/_ccr/info']['get']"
271+
description: "Add examples for get follower info"
272+
update:
273+
responses:
274+
200:
275+
content:
276+
application/json:
277+
examples:
278+
ccrFollowerInfoResponseExample1:
279+
$ref: "../../specification/ccr/follow_info/examples/response/FollowInfoResponseExample1.yaml"
280+
ccrFollowerInfoResponseExample2:
281+
$ref: "../../specification/ccr/follow_info/examples/response/FollowInfoResponseExample2.yaml"
282+
- target: "$.paths['/_ccr/auto_follow/{name}']['delete']"
283+
description: "Add examples for delete auto follow pattern"
284+
update:
285+
responses:
286+
200:
287+
content:
288+
application/json:
289+
examples:
290+
ccrAutoFollowPatternDeleteResponseExample1:
291+
$ref: "../../specification/ccr/delete_auto_follow_pattern/examples/response/DeleteAutoFollowPatternResponseExample1.yaml"
292+
## Examples for cluster
198293
- target: "$.components['requestBodies']['cluster.allocation_explain']"
199294
description: "Add examples for cluster allocation explain operation"
200295
update:
@@ -255,6 +350,34 @@ actions:
255350
examples:
256351
nodesInfoResponseExample1:
257352
$ref: "../../specification/nodes/info/examples/200_response/nodesInfoResponseExample1.yaml"
353+
## Examples for connectors
354+
- target: "$.paths['/_connector/_sync_job/{connector_sync_job_id}/_error']['put']"
355+
description: "Add examples for connector job sync error operation"
356+
update:
357+
requestBody:
358+
content:
359+
application/json:
360+
examples:
361+
syncJobErrorRequestExample1:
362+
$ref: "../../specification/connector/sync_job_error/examples/request/SyncJobErrorRequestExample1.yaml"
363+
- target: "$.paths['/_connector/{connector_id}/_features']['put']"
364+
description: "Add examples for update connector features"
365+
update:
366+
requestBody:
367+
content:
368+
application/json:
369+
examples:
370+
connectorUpdateFeaturesRequestExample1:
371+
$ref: "../../specification/connector/update_features/examples/request/ConnectorUpdateFeaturesRequestExample1.yaml"
372+
connectorUpdateFeaturesRequestExample2:
373+
$ref: "../../specification/connector/update_features/examples/request/ConnectorUpdateFeaturesRequestExample2.yaml"
374+
responses:
375+
200:
376+
content:
377+
application/json:
378+
examples:
379+
connectorUpdateFeaturesResponseExample1:
380+
$ref: "../../specification/connector/update_features/examples/response/ConnectorUpdateFeaturesResponseExample1.yaml"
258381
## Examples for esql
259382
- target: "$.paths['/_query/async']['post']"
260383
description: "Add examples for async esql query operation"
@@ -460,16 +583,16 @@ actions:
460583
examples:
461584
getIndicesRecoveryResponseExample1:
462585
$ref: "../../specification/indices/recovery/examples/200_response/indicesRecoveryResponseExample1.yaml"
463-
- target: "$.paths['/_resolve/cluster/{name}']['get']"
586+
- target: "$.components['responses']['indices.resolve_cluster#200']"
464587
description: "Add examples for resolve cluster operation"
465588
update:
466-
responses:
467-
200:
468-
content:
469-
application/json:
470-
examples:
471-
resolveClusterResponseExample1:
472-
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
589+
content:
590+
application/json:
591+
examples:
592+
resolveClusterResponseExample1:
593+
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
594+
resolveClusterResponseExample2:
595+
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample2.yaml"
473596
- target: "$.components['requestBodies']['indices.shrink']"
474597
description: "Add example for shrink index request"
475598
update:
@@ -494,16 +617,6 @@ actions:
494617
examples:
495618
indicesLegacyPutTemplateRequestExample1:
496619
$ref: "../../specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml"
497-
- target: "$.paths['/_lifecycle/stats']['get']"
498-
description: "Add examples for get lifecycle stats operation"
499-
update:
500-
responses:
501-
200:
502-
content:
503-
application/json:
504-
examples:
505-
dataStreamLifecycleStatsResponseExample1:
506-
$ref: "../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
507620
## Examples for inference
508621
- target: "$.components['requestBodies']['inference.stream_inference']"
509622
description: "Add example for inference stream request"
@@ -597,6 +710,59 @@ actions:
597710
examples:
598711
clusterHealthResponseExample1:
599712
$ref: "../../specification/license/post/examples/200_response/PostLicenseResponseExample1.yaml"
713+
## Examples for machine learning
714+
- target: "$.components['requestBodies']['ml.explain_data_frame_analytics']"
715+
description: "Add examples for explain dataframe analytics"
716+
update:
717+
content:
718+
application/json:
719+
examples:
720+
mlDataFrameAnalyticsExplainRequestExample1:
721+
$ref: "../../specification/ml/explain_data_frame_analytics/examples/request/MlExplainDataFrameAnalyticsRequestExample1.yaml"
722+
- target: "$.components['responses']['ml.explain_data_frame_analytics#200']"
723+
description: "Add examples for explain dataframe analytics response"
724+
update:
725+
content:
726+
application/json:
727+
examples:
728+
mlDataFrameAnalyticsExplainResponseExample1:
729+
$ref: "../../specification/ml/explain_data_frame_analytics/examples/response/MlExplainDataFrameAnalyticsResponseExample1.yaml"
730+
- target: "$.paths['/_ml/trained_models/{model_id}/deployment/cache/_clear']['post']"
731+
description: "Add examples for clear trained model cache"
732+
update:
733+
responses:
734+
200:
735+
content:
736+
application/json:
737+
examples:
738+
mlTrainedModelClearResponseExample1:
739+
$ref: "../../specification/ml/clear_trained_model_deployment_cache/examples/response/MlClearTrainedModelDeploymentCacheResponseExample1.yaml"
740+
- target: "$.paths['/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}']['delete']"
741+
description: "Add examples for delete trained model snapshot"
742+
update:
743+
responses:
744+
200:
745+
content:
746+
application/json:
747+
examples:
748+
mlTrainedModelSnapshotDeleteResponseExample1:
749+
$ref: "../../specification/ml/delete_model_snapshot/examples/response/MlDeleteModelSnapshotResponseExample1.yaml"
750+
- target: "$.components['responses']['ml.delete_forecast#200']"
751+
description: "Add examples for delete forecast"
752+
update:
753+
content:
754+
application/json:
755+
examples:
756+
mlForecastDeleteResponseExample1:
757+
$ref: "../../specification/ml/delete_forecast/examples/response/MlDeleteForecastResponseExample1.yaml"
758+
- target: "$.components['responses']['ml.delete_expired_data#200']"
759+
description: "Add examples for delete expired data"
760+
update:
761+
content:
762+
application/json:
763+
examples:
764+
mlExpiredDataDeleteResponseExample1:
765+
$ref: "../../specification/ml/delete_expired_data/examples/response/MlDeleteExpiredDataResponseExample1.yaml"
600766
## Examples for search applications
601767
- target: "$.paths['/_application/search_application/{name}/_render_query']['post']"
602768
description: "Add examples for render search application query operation"
@@ -653,6 +819,17 @@ actions:
653819
examples:
654820
getTasksResponseExample1:
655821
$ref: "../../specification/tasks/get/examples/200_response/GetTaskResponseExample1.yaml"
822+
## Examples for transforms
823+
- target: "$.paths['/_transform/_upgrade']['post']"
824+
description: "Add examples for transform upgrade"
825+
update:
826+
responses:
827+
200:
828+
content:
829+
application/json:
830+
examples:
831+
transformUpgradeResponseExample1:
832+
$ref: "../../specification/transform/upgrade_transforms/examples/response/UpgradeTransformResponseExample1.yaml"
656833
## Examples for watcher
657834
- target: "$.paths['/_watcher/settings']['put']"
658835
description: "Add request example for update watcher settings"

0 commit comments

Comments
 (0)