Skip to content

Commit

Permalink
[codegen] 7.x synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
nknize authored Oct 1, 2021
1 parent 0eddd8d commit b5f3039
Show file tree
Hide file tree
Showing 58 changed files with 453 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"visibility":"private",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"visibility":"private",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"visibility":"private",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"visibility":"private",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"body":{
"description":"The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'"
"description":"The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'"
}
}
}
3 changes: 2 additions & 1 deletion src/ApiGenerator/RestSpecification/Core/field_caps.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"fleet.global_checkpoints":{
"documentation":{
"url": null,
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html",
"description": "Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project."
},
"stability":"experimental",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html",
"description":"Returns all script contexts."
},
"stability":"experimental",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html",
"description":"Returns available script types, languages and contexts"
},
"stability":"experimental",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
Expand Down
4 changes: 2 additions & 2 deletions src/ApiGenerator/RestSpecification/Core/indices.delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"none",
"all"
],
"default":"open",
"description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)"
"default":"open,closed",
"description":"Whether wildcard expressions should get expanded to open, closed, or hidden indices"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html",
"description":"Returns information about any matching indices, aliases, and data streams"
},
"stability":"experimental",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"migration.get_feature_upgrade_status":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html",
"description":"Find out whether system features need to be upgraded or not"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_migration/system_features",
"methods":[
"GET"
]
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"migration.post_feature_upgrade":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html",
"description":"Begin upgrades for system features"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_migration/system_features",
"methods":[
"POST"
]
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
}
]
},
"params":{
"defer_definition_decompression": {
"required": false,
"type": "boolean",
"description": "If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations.",
"default": false
}
},
"body":{
"description":"The trained model configuration",
"required":true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
Expand Down
4 changes: 2 additions & 2 deletions src/ApiGenerator/RestSpecification/Core/monitoring.bulk.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html",
"description":"Used by the monitoring features to send monitoring data."
},
"stability":"experimental",
"visibility":"public",
"stability":"stable",
"visibility":"private",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/x-ndjson"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"nodes.clear_metering_archive":{
"nodes.clear_repositories_metering_archive":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html",
"description":"Removes the archived repositories metering information present in the cluster."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"nodes.get_metering_info":{
"nodes.get_repositories_metering_info":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html",
"description":"Returns cluster repositories metering information."
Expand Down
6 changes: 4 additions & 2 deletions src/ApiGenerator/RestSpecification/Core/nodes.stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
"segments",
"store",
"warmer",
"suggest"
"suggest",
"shards"
],
"description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
}
Expand Down Expand Up @@ -175,7 +176,8 @@
"segments",
"store",
"warmer",
"suggest"
"suggest",
"shards"
],
"description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
},
"url":{
"paths":[
{
"path":"/_pit",
"methods":[
"POST"
]
},
{
"path":"/{index}/_pit",
"methods":[
Expand Down
2 changes: 1 addition & 1 deletion src/ApiGenerator/RestSpecification/Core/rank_eval.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html",
"description":"Allows to evaluate the quality of ranked search results over a set of typical search queries"
},
"stability":"experimental",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
Expand Down
91 changes: 91 additions & 0 deletions src/ApiGenerator/RestSpecification/Core/search_mvt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"search_mvt": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html",
"description": "Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile."
},
"stability": "experimental",
"visibility": "public",
"headers": {
"accept": [
"application/vnd.mapbox-vector-tile"
],
"content_type": [
"application/json"
]
},
"url": {
"paths": [
{
"path": "/{index}/_mvt/{field}/{zoom}/{x}/{y}",
"methods": [
"POST",
"GET"
],
"parts": {
"index": {
"type": "list",
"description": "Comma-separated list of data streams, indices, or aliases to search"
},
"field": {
"type": "string",
"description": "Field containing geospatial data to return"
},
"zoom": {
"type": "int",
"description": "Zoom level for the vector tile to search"
},
"x": {
"type": "int",
"description": "X coordinate for the vector tile to search"
},
"y": {
"type": "int",
"description": "Y coordinate for the vector tile to search"
}
}
}
]
},
"params":{
"exact_bounds":{
"type":"boolean",
"description":"If false, the meta layer's feature is the bounding box of the tile. If true, the meta layer's feature is a bounding box resulting from a `geo_bounds` aggregation.",
"default":false
},
"extent":{
"type":"int",
"description":"Size, in pixels, of a side of the vector tile.",
"default":4096
},
"grid_precision":{
"type":"int",
"description":"Additional zoom levels available through the aggs layer. Accepts 0-8.",
"default":8
},
"grid_type":{
"type":"enum",
"options":[
"grid",
"point",
"centroid"
],
"description":"Determines the geometry type for features in the aggs layer.",
"default":"grid"
},
"size":{
"type":"int",
"description":"Maximum number of features to return in the hits layer. Accepts 0-10000.",
"default":10000
},
"track_total_hits":{
"type":"boolean|long",
"description":"Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number."
}
},
"body":{
"description":"Search request body.",
"required":false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html",
"description": "Mount a snapshot as a searchable index."
},
"stability": "experimental",
"stability": "stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
"description": "Retrieve shard-level statistics about searchable snapshots."
},
"stability": "experimental",
"stability": "stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html",
"description":"Evicts tokens from the service account token caches."
},
"stability":"beta",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
Expand Down
Loading

0 comments on commit b5f3039

Please sign in to comment.