Skip to content

Commit

Permalink
Merge branch 'main' into sync-job-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Jan 3, 2025
2 parents 2c5180c + 16be4de commit bbce91b
Show file tree
Hide file tree
Showing 49 changed files with 2,253 additions and 128 deletions.
2 changes: 1 addition & 1 deletion compiler/src/model/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export function hoistRequestAnnotations (
const privileges = [
'all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr',
'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_inference', 'manage_ingest_pipelines', 'manage_logstash_pipelines',
'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml',
'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application',
'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile',
'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure',
'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client'
Expand Down
72 changes: 71 additions & 1 deletion docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,74 @@ actions:
application/json:
examples:
connectorSyncJobUpdateStatsRequestExample1:
$ref: "../../specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequestExample1.yaml"
$ref: "../../specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequestExample1.yaml"
## Examples for licensing
- target: "$.paths['/_license/basic_status']['get']"
description: "Add example for get basic status response"
update:
responses:
200:
content:
application/json:
examples:
getBasicStatusResponseExample1:
$ref: "../../specification/license/get_basic_status/GetBasicLicenseStatusResponseExample1.yaml"
- target: "$.paths['/_license/trial_status']['get']"
description: "Add example for get trial status response"
update:
responses:
200:
content:
application/json:
examples:
getLicenseResponseExample1:
$ref: "../../specification/license/get_trial_status/GetTrialLicenseStatusResponseExample1.yaml"
- target: "$.paths['/_license/start_basic']['post']"
description: "Add example for start basic response"
update:
responses:
200:
content:
application/json:
examples:
startBasicLicenseResponseExample1:
$ref: "../../specification/license/post_start_basic/StartBasicLicenseResponseExample1.yaml"
- target: "$.paths['/_license/start_trial']['post']"
description: "Add example for start trial response"
update:
responses:
200:
content:
application/json:
examples:
startTrialLicenseResponseExample1:
$ref: "../../specification/license/post_start_trial/StartTrialLicenseResponseExample1.yaml"
- target: "$.components['requestBodies']['license.post']"
description: "Add examples for update license request"
update:
content:
application/json:
examples:
updateLicenseRequestExample1:
$ref: "../../specification/license/post/PostLicenseRequestExample1.yaml"
- target: "$.components['responses']['license.post#200']"
description: "Add examples for update license response"
update:
content:
application/json:
examples:
clusterHealthResponseExample1:
$ref: "../../specification/license/post/PostLicenseResponseExample1.yaml"
## Examples for search applications
- target: "$.paths['/_application/search_application/{name}/_render_query']['post']"
description: "Add examples for render search application query operation"
update:
requestBody:
content:
application/json:
examples:
renderSearchApplicationQueryRequestExample1:
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryRequestExample1.yaml"
renderSearchApplicationQueryResponseExample1:
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryResponseExample1.yaml"

58 changes: 58 additions & 0 deletions docs/overlays/elasticsearch-shared-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1351,3 +1351,61 @@ actions:
examples:
indicesRolloverResponseExample1:
$ref: "../../specification/indices/rollover/indicesRolloverResponseExample1.yaml"
## Examples for behavioral analytics
- target: "$.components['responses']['search_application.get_behavioral_analytics#200']"
description: "Add example for get behavioral analytics collections response"
update:
content:
application/json:
examples:
getBehavioralAnalyticsCollectionsResponseExample1:
$ref: "../../specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponseExample1.yaml"
## Examples for licensing
- target: "$.paths['/_license']['get']"
description: "Add example for get license response"
update:
responses:
200:
content:
application/json:
examples:
getLicenseResponseExample1:
$ref: "../../specification/license/get/GetLicenseResponseExample1.yaml"
## Examples for search applications
- target: "$.paths['/_application/search_application']['get']"
description: "Add examples for get search applications operation"
update:
responses:
200:
content:
application/json:
examples:
getSearchApplicationsResponseExample1:
$ref: "../../specification/search_application/list/SearchApplicationsListResponseExample1.yaml"
- target: "$.paths['/_application/search_application/{name}']['get']"
description: "Add examples for get search application details operation"
update:
responses:
200:
content:
application/json:
examples:
getSearchApplicationResponseExample1:
$ref: "../../specification/search_application/get/SearchApplicationGetResponseExample1.yaml"
- target: "$.paths['/_application/search_application/{name}']['put']"
description: "Add examples for create search application operation"
update:
requestBody:
content:
application/json:
examples:
putSearchApplicationRequestExample1:
$ref: "../../specification/search_application/put/SearchApplicationPutRequestExample1.yaml"
- target: "$.components['requestBodies']['search_application.search']"
description: "Add example for search application search request"
update:
content:
application/json:
examples:
searchApplicationSearchRequestExample1:
$ref: "../../specification/search_application/search/SearchApplicationsSearchRequestExample1.yaml"
Loading

0 comments on commit bbce91b

Please sign in to comment.