Skip to content

Commit

Permalink
Update to latest 7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Nov 10, 2020
1 parent 03d4586 commit a699663
Show file tree
Hide file tree
Showing 19 changed files with 1,041 additions and 25 deletions.
23 changes: 23 additions & 0 deletions api_generator/rest_specs/close_point_in_time.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"close_point_in_time":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
"description":"Close a point in time"
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_pit",
"methods":[
"DELETE"
]
}
]
},
"params":{},
"body":{
"description": "a point-in-time id to close"
}
}
}
2 changes: 1 addition & 1 deletion api_generator/rest_specs/last_downloaded_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.x
7.10
4 changes: 2 additions & 2 deletions api_generator/rest_specs/ml.delete_trained_model.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"ml.delete_trained_model":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html",
"description":"Deletes an existing trained inference model that is currently not referenced by an ingest pipeline."
},
"stability":"experimental",
"url":{
"paths":[
{
"path":"/_ml/inference/{model_id}",
"path":"/_ml/trained_models/{model_id}",
"methods":[
"DELETE"
],
Expand Down
14 changes: 10 additions & 4 deletions api_generator/rest_specs/ml.get_trained_models.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"ml.get_trained_models":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html",
"description":"Retrieves configuration information for a trained inference model."
},
"stability":"experimental",
"url":{
"paths":[
{
"path":"/_ml/inference/{model_id}",
"path":"/_ml/trained_models/{model_id}",
"methods":[
"GET"
],
Expand All @@ -20,7 +20,7 @@
}
},
{
"path":"/_ml/inference",
"path":"/_ml/trained_models",
"methods":[
"GET"
]
Expand All @@ -34,11 +34,17 @@
"description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)",
"default":true
},
"include":{
"type":"string",
"required":false,
"description":"A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none."
},
"include_model_definition":{
"type":"boolean",
"required":false,
"description":"Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.",
"default":false
"default":false,
"deprecated": true
},
"decompress_definition":{
"type":"boolean",
Expand Down
6 changes: 3 additions & 3 deletions api_generator/rest_specs/ml.get_trained_models_stats.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"ml.get_trained_models_stats":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html",
"description":"Retrieves usage information for trained inference models."
},
"stability":"experimental",
"url":{
"paths":[
{
"path":"/_ml/inference/{model_id}/_stats",
"path":"/_ml/trained_models/{model_id}/_stats",
"methods":[
"GET"
],
Expand All @@ -20,7 +20,7 @@
}
},
{
"path":"/_ml/inference/_stats",
"path":"/_ml/trained_models/_stats",
"methods":[
"GET"
]
Expand Down
4 changes: 2 additions & 2 deletions api_generator/rest_specs/ml.put_trained_model.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"ml.put_trained_model":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html",
"description":"Creates an inference trained model."
},
"stability":"experimental",
"url":{
"paths":[
{
"path":"/_ml/inference/{model_id}",
"path":"/_ml/trained_models/{model_id}",
"methods":[
"PUT"
],
Expand Down
61 changes: 61 additions & 0 deletions api_generator/rest_specs/open_point_in_time.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"open_point_in_time":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
"description":"Open a point in time that can be used in subsequent searches"
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_pit",
"methods":[
"POST"
]
},
{
"path":"/{index}/_pit",
"methods":[
"POST"
],
"parts":{
"index":{
"type":"list",
"description":"A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices"
}
}
}
]
},
"params":{
"preference":{
"type":"string",
"description":"Specify the node or shard the operation should be performed on (default: random)"
},
"routing":{
"type":"string",
"description":"Specific routing value"
},
"ignore_unavailable":{
"type":"boolean",
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)"
},
"expand_wildcards":{
"type":"enum",
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
"default":"open",
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
},
"keep_alive": {
"type": "string",
"description": "Specific the time to live for the point in time"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"searchable_snapshots.clear_cache": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-clear-cache.html",
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
"description" : "Clear the cache of searchable snapshots."
},
"stability": "experimental",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"searchable_snapshots.repository_stats": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-repository-stats.html",
"description": "Retrieve usage statistics about a snapshot repository."
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
"description": "DEPRECATED: This API is replaced by the Repositories Metering API."
},
"stability": "experimental",
"url": {
Expand Down
2 changes: 1 addition & 1 deletion api_generator/rest_specs/searchable_snapshots.stats.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"searchable_snapshots.stats": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-stats.html",
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
"description": "Retrieve various statistics about searchable snapshots."
},
"stability": "experimental",
Expand Down
26 changes: 26 additions & 0 deletions api_generator/rest_specs/security.clear_api_key_cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"security.clear_api_key_cache":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html",
"description":"Clear a subset or all entries from the API key cache."
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_security/api_key/{ids}/_clear_cache",
"methods":[
"POST"
],
"parts":{
"ids":{
"type":"list",
"description":"A comma-separated list of IDs of API keys to clear from the cache"
}
}
}
]
},
"params":{}
}
}
4 changes: 2 additions & 2 deletions api_generator/rest_specs/security.get_role.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"parts":{
"name":{
"type":"string",
"description":"Role name"
"type":"list",
"description":"A comma-separated list of role names"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions api_generator/rest_specs/security.get_role_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"parts":{
"name":{
"type":"string",
"description":"Role-Mapping name"
"type":"list",
"description":"A comma-separated list of role-mapping names"
}
}
},
Expand Down
34 changes: 34 additions & 0 deletions api_generator/rest_specs/security.grant_api_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"security.grant_api_key":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html",
"description":"Creates an API key on behalf of another user."
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_security/api_key/grant",
"methods":[
"POST"
]
}
]
},
"params":{
"refresh":{
"type":"enum",
"options":[
"true",
"false",
"wait_for"
],
"description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
}
},
"body":{
"description":"The api key request to create an API key",
"required":true
}
}
}
43 changes: 43 additions & 0 deletions api_generator/rest_specs/snapshot.clone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"snapshot.clone":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"description":"Clones indices from one snapshot into another snapshot in the same repository."
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}",
"methods":[
"PUT"
],
"parts":{
"repository":{
"type":"string",
"description":"A repository name"
},
"snapshot":{
"type":"string",
"description":"The name of the snapshot to clone from"
},
"target_snapshot":{
"type":"string",
"description":"The name of the cloned snapshot to create"
}
}
}
]
},
"params":{
"master_timeout":{
"type":"time",
"description":"Explicit operation timeout for connection to master node"
}
},
"body":{
"description":"The snapshot clone definition",
"required":true
}
}
}
4 changes: 3 additions & 1 deletion elasticsearch/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub enum OpType {
Create,
}
#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
#[doc = "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."]
#[doc = "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."]
pub enum Refresh {
#[serde(rename = "true")]
True,
Expand Down Expand Up @@ -200,6 +200,8 @@ pub enum VersionType {
External,
#[serde(rename = "external_gte")]
ExternalGte,
#[serde(rename = "force")]
Force,
}
#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
#[doc = "Wait until all currently queued events with the given priority are processed"]
Expand Down
Loading

0 comments on commit a699663

Please sign in to comment.