Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/ApiGenerator/RestSpecification/Core/cat.indices.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
"pb"
]
},
"local":{
"type":"boolean",
"description":"Return local information, do not retrieve the state from master node (default: false)",
"deprecated":{
"version":"8.0.0",
"description":"This parameter does not affect the request. It will be removed in a future release."
}
},
"master_timeout":{
"type":"time",
"description":"Explicit operation timeout for connection to master node"
Expand Down
8 changes: 0 additions & 8 deletions src/ApiGenerator/RestSpecification/Core/cat.shards.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
"pb"
]
},
"local":{
"type":"boolean",
"description":"Return local information, do not retrieve the state from master node (default: false)",
"deprecated":{
"version":"8.0.0",
"description":"This parameter does not affect the request. It will be removed in a future release."
}
},
"master_timeout":{
"type":"time",
"description":"Explicit operation timeout for connection to master node"
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-component-template.html",
"description":"Deletes a component template"
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-component-template.html",
"description":"Returns information about whether a particular component template exist"
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-component-template.html",
"description":"Returns one or more component templates"
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-component-template.html",
"description":"Creates or updates a component template"
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-templates.html",
"description":"Deletes an index template."
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-templates.html",
"description":"Returns information about whether a particular index template exists."
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-templates.html",
"description":"Returns an index template."
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
Expand Down
61 changes: 0 additions & 61 deletions src/ApiGenerator/RestSpecification/Core/indices.get_upgrade.json

This file was deleted.

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-templates.html",
"description":"Creates or updates an index template."
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-templates.html",
"description": "Simulate matching the given index name against the index templates in the system"
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
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-templates.html",
"description": "Simulate resolving the given template name or body"
},
"stability":"experimental",
"stability":"stable",
"url":{
"paths":[
{
Expand Down
69 changes: 0 additions & 69 deletions src/ApiGenerator/RestSpecification/Core/indices.upgrade.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"ml.upgrade_job_snapshot":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html",
"description":"Upgrades a given job snapshot to the current major version."
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade",
"methods":[
"POST"
],
"parts":{
"job_id":{
"type":"string",
"description":"The ID of the job"
},
"snapshot_id":{
"type":"string",
"description":"The ID of the snapshot"
}
}
}
]
},
"params":{
"timeout":{
"type":"time",
"required":false,
"description":"How long should the API wait for the job to be opened and the old snapshot to be loaded."
},
"wait_for_completion":{
"type":"boolean",
"required":false,
"description":"Should the request wait until the task is complete before responding to the caller. Default is false."
}
}
}
}
2 changes: 1 addition & 1 deletion src/ApiGenerator/last_downloaded_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b31c235f5857bbeb09bfc569c04ed950e5054fbd
7b8637e3a680af6a3930b2e2fc9f4f1f121bd797
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,6 @@ public bool? IncludeUnloadedSegments
set => Q("include_unloaded_segments", value);
}

///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
[Obsolete("Scheduled to be removed in 8.0, Deprecated as of: 8.0.0, reason: This parameter does not affect the request. It will be removed in a future release.")]
public bool? Local
{
get => Q<bool? >("local");
set => Q("local", value);
}

///<summary>Explicit operation timeout for connection to master node</summary>
public TimeSpan MasterTimeout
{
Expand Down Expand Up @@ -1206,14 +1198,6 @@ public bool? Help
set => Q("help", value);
}

///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
[Obsolete("Scheduled to be removed in 8.0, Deprecated as of: 8.0.0, reason: This parameter does not affect the request. It will be removed in a future release.")]
public bool? Local
{
get => Q<bool? >("local");
set => Q("local", value);
}

///<summary>Explicit operation timeout for connection to master node</summary>
public TimeSpan MasterTimeout
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,26 @@ public class UpdateModelSnapshotRequestParameters : RequestParameters<UpdateMode
public override bool SupportsBody => true;
}

///<summary>Request options for UpgradeJobSnapshot <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html</para></summary>
public class UpgradeJobSnapshotRequestParameters : RequestParameters<UpgradeJobSnapshotRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.POST;
public override bool SupportsBody => false;
///<summary>How long should the API wait for the job to be opened and the old snapshot to be loaded.</summary>
public TimeSpan Timeout
{
get => Q<TimeSpan>("timeout");
set => Q("timeout", value);
}

///<summary>Should the request wait until the task is complete before responding to the caller. Default is false.</summary>
public bool? WaitForCompletion
{
get => Q<bool? >("wait_for_completion");
set => Q("wait_for_completion", value);
}
}

///<summary>Request options for ValidateJob <para>https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html</para></summary>
public class ValidateJobRequestParameters : RequestParameters<ValidateJobRequestParameters>
{
Expand Down
Loading