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
4 changes: 4 additions & 0 deletions src/ApiGenerator/RestSpecification/Core/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
"type":"boolean",
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
"default":false
},
"min_compatible_shard_node":{
"type":"string",
"description":"The minimum compatible version that all shards involved in search should have for this request to be successful"
}
},
"body":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.delete_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html",
"description":"Deletes an autoscaling policy."
"description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.get_autoscaling_capacity":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html",
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy."
"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":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.get_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html",
"description": "Retrieves an autoscaling policy."
"description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.put_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html",
"description": "Creates a new autoscaling policy."
"description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"logstash.delete_pipeline":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html",
"description":"Deletes Logstash Pipelines used by Central Management"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_logstash/pipeline/{id}",
"methods":[ "DELETE" ],
"parts":{
"id":{
"type":"string",
"description":"The ID of the Pipeline"
}
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"logstash.get_pipeline":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html",
"description":"Retrieves Logstash Pipelines used by Central Management"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_logstash/pipeline/{id}",
"methods":[ "GET" ],
"parts":{
"id":{
"type":"string",
"description":"A comma-separated list of Pipeline IDs"
}
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"logstash.put_pipeline":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html",
"description":"Adds and updates Logstash Pipelines used for Central Management"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_logstash/pipeline/{id}",
"methods":[ "PUT" ],
"parts":{
"id":{
"type":"string",
"description":"The ID of the Pipeline"
}
}
}
]
},
"params":{
},
"body":{
"description":"The Pipeline to add or update",
"required":true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"type":"boolean",
"description":"Should this request wait until the operation has completed before returning",
"default":false
},
"storage":{
"type":"string",
"description":"Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy`",
"default":false
}
},
"body":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
}
}
]
},
"params": {
"level":{
"type":"enum",
"description":"Return stats aggregated at cluster, index or shard level",
"options":[
"cluster",
"indices",
"shards"
],
"default":"indices"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ml.find_file_structure":{
"text_structure.find_structure":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html",
"description":"Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."
},
"stability":"experimental",
Expand All @@ -13,7 +13,7 @@
"url":{
"paths":[
{
"path":"/_ml/find_file_structure",
"path":"/_text_structure/find_structure",
"methods":[
"POST"
]
Expand Down
2 changes: 1 addition & 1 deletion src/ApiGenerator/last_downloaded_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
963c3284b354553b9097ad9e2f3cd31e411c239a
747198ffed9b10273463367cf6ccc7ac5bfa077e
62 changes: 31 additions & 31 deletions src/Elasticsearch.Net/Api/Enums.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,6 @@ public enum IndicesShardStoresStatus
All
}

[StringEnum]
public enum Format
{
[EnumMember(Value = "ndjson")]
Ndjson,
[EnumMember(Value = "xml")]
Xml,
[EnumMember(Value = "delimited")]
Delimited,
[EnumMember(Value = "semi_structured_text")]
SemiStructuredText
}

[StringEnum]
public enum ThreadType
{
Expand All @@ -426,6 +413,19 @@ public enum GroupBy
None
}

[StringEnum]
public enum Format
{
[EnumMember(Value = "ndjson")]
Ndjson,
[EnumMember(Value = "xml")]
Xml,
[EnumMember(Value = "delimited")]
Delimited,
[EnumMember(Value = "semi_structured_text")]
SemiStructuredText
}

public static class KnownEnums
{
private static readonly ConcurrentDictionary<Type, Func<Enum, string>> EnumStringResolvers = new ConcurrentDictionary<Type, Func<Enum, string>>();
Expand Down Expand Up @@ -453,9 +453,9 @@ static KnownEnums()
EnumStringResolvers.TryAdd(typeof(Conflicts), (e) => GetStringValue((Conflicts)e));
EnumStringResolvers.TryAdd(typeof(OpType), (e) => GetStringValue((OpType)e));
EnumStringResolvers.TryAdd(typeof(IndicesShardStoresStatus), (e) => GetStringValue((IndicesShardStoresStatus)e));
EnumStringResolvers.TryAdd(typeof(Format), (e) => GetStringValue((Format)e));
EnumStringResolvers.TryAdd(typeof(ThreadType), (e) => GetStringValue((ThreadType)e));
EnumStringResolvers.TryAdd(typeof(GroupBy), (e) => GetStringValue((GroupBy)e));
EnumStringResolvers.TryAdd(typeof(Format), (e) => GetStringValue((Format)e));
}

public static string GetStringValue(this ClusterStateMetric enumValue)
Expand Down Expand Up @@ -888,23 +888,6 @@ public static string GetStringValue(this IndicesShardStoresStatus enumValue)
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'IndicesShardStoresStatus'");
}

public static string GetStringValue(this Format enumValue)
{
switch (enumValue)
{
case Format.Ndjson:
return "ndjson";
case Format.Xml:
return "xml";
case Format.Delimited:
return "delimited";
case Format.SemiStructuredText:
return "semi_structured_text";
}

throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'");
}

public static string GetStringValue(this ThreadType enumValue)
{
switch (enumValue)
Expand Down Expand Up @@ -934,5 +917,22 @@ public static string GetStringValue(this GroupBy enumValue)

throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GroupBy'");
}

public static string GetStringValue(this Format enumValue)
{
switch (enumValue)
{
case Format.Ndjson:
return "ndjson";
case Format.Xml:
return "xml";
case Format.Delimited:
return "delimited";
case Format.SemiStructuredText:
return "semi_structured_text";
}

throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// -----------------------------------------------
//
// This file is automatically generated
// Please do not edit these files manually
// Run the following in the root of the repos:
//
// *NIX : ./build.sh codegen
// Windows : build.bat codegen
//
// -----------------------------------------------
// ReSharper disable RedundantUsingDirective
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using Elastic.Transport;

// ReSharper disable once CheckNamespace
namespace Elasticsearch.Net.Specification.LogstashApi
{
///<summary>Request options for DeletePipeline <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html</para></summary>
public class DeletePipelineRequestParameters : RequestParameters<DeletePipelineRequestParameters>
{
}

///<summary>Request options for GetPipeline <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html</para></summary>
public class GetPipelineRequestParameters : RequestParameters<GetPipelineRequestParameters>
{
}

///<summary>Request options for PutPipeline <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html</para></summary>
public class PutPipelineRequestParameters : RequestParameters<PutPipelineRequestParameters>
{
}
}
Loading