Skip to content

Commit 023f0e8

Browse files
Mpdreamzrusscam
authored andcommitted
run code gen
1 parent eca9572 commit 023f0e8

File tree

10 files changed

+256
-102
lines changed

10 files changed

+256
-102
lines changed

src/CodeGeneration/ApiGenerator/Domain/ApiQueryParameters.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ namespace ApiGenerator.Domain
66
{
77
public class ApiQueryParameters
88
{
9-
private static readonly string[] FieldsParams = { "fields", "_source_include", "_source_exclude" };
9+
private static readonly string[] FieldsParams =
10+
{
11+
"fields", "_source_include", "_source_exclude", "_source_includes", "_source_excludes",
12+
};
1013

1114
public string ClsArgumentName => ClsName.ToCamelCase();
1215

src/CodeGeneration/ApiGenerator/Domain/ApiQueryParametersPatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static Dictionary<string, ApiQueryParameters> Patch(
5050
//make sure source_enabled takes a boolean only
5151
if (preferredName == "source_enabled") kv.Value.Type = "boolean";
5252

53-
patchedParams.Add(preferredName, kv.Value);
53+
patchedParams[preferredName] = kv.Value;
5454
}
5555

5656
return patchedParams;

src/CodeGeneration/ApiGenerator/Overrides/Endpoints/SearchOverrides.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public class SearchOverrides : EndpointOverridesBase
1717
"_source",
1818
"_source_include",
1919
"_source_exclude",
20+
"_source_includes",
21+
"_source_excludes",
2022
"track_scores",
2123
"terminate_after",
2224
};

src/CodeGeneration/ApiGenerator/Overrides/Endpoints/UpdateOverrides.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ public class UpdateOverrides : EndpointOverridesBase
77
{
88
public override IEnumerable<string> SkipQueryStringParams => new[]
99
{
10-
"fields", "_source_include", "_source_exclude"
10+
"fields",
11+
"_source_include", "_source_exclude",
12+
"_source_includes", "_source_excludes"
1113
};
1214
}
1315
}

src/Elasticsearch.Net/Domain/Enums.Generated.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ [Flags]public enum NodesUsageMetric
210210
[Flags]public enum WatcherStatsMetric
211211
{
212212
[EnumMember(Value = "queued_watches")] QueuedWatches = 1 << 0,
213-
[EnumMember(Value = "pending_watches")] PendingWatches = 1 << 1,
214-
[EnumMember(Value = "_all")] All = 1 << 2
213+
[EnumMember(Value = "current_watches")] CurrentWatches = 1 << 1,
214+
[EnumMember(Value = "pending_watches")] PendingWatches = 1 << 2,
215+
[EnumMember(Value = "_all")] All = 1 << 3
215216
}
216217
public static class KnownEnums
217218
{
@@ -534,6 +535,7 @@ public static string GetStringValue(this WatcherStatsMetric enumValue)
534535
if ((enumValue & WatcherStatsMetric.All) != 0) return "_all";
535536
var list = new List<string>();
536537
if ((enumValue & WatcherStatsMetric.QueuedWatches) != 0) list.Add("queued_watches");
538+
if ((enumValue & WatcherStatsMetric.CurrentWatches) != 0) list.Add("current_watches");
537539
if ((enumValue & WatcherStatsMetric.PendingWatches) != 0) list.Add("pending_watches");
538540
return string.Join(",", list);
539541
}

src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

Lines changed: 66 additions & 17 deletions
Large diffs are not rendered by default.

src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,20 +2190,20 @@ public TResponse NodesInfo<TResponse>(string node_id, string metric, NodesInfoRe
21902190
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
21912191
public Task<TResponse> NodesInfoAsync<TResponse>(string node_id, string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
21922192
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_nodes/{node_id.NotNull("node_id")}/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters));
2193-
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
2193+
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
21942194
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
21952195
public TResponse NodesReloadSecureSettingsForAll<TResponse>(ReloadSecureSettingsRequestParameters requestParameters = null)
21962196
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_nodes/reload_secure_settings"), null, _params(requestParameters));
2197-
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
2197+
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
21982198
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
21992199
public Task<TResponse> NodesReloadSecureSettingsForAllAsync<TResponse>(ReloadSecureSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
22002200
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_nodes/reload_secure_settings"), ctx, null, _params(requestParameters));
2201-
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
2201+
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
22022202
///<param name="node_id">A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes.</param>
22032203
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
22042204
public TResponse NodesReloadSecureSettings<TResponse>(string node_id, ReloadSecureSettingsRequestParameters requestParameters = null)
22052205
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_nodes/{node_id.NotNull("node_id")}/reload_secure_settings"), null, _params(requestParameters));
2206-
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
2206+
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
22072207
///<param name="node_id">A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes.</param>
22082208
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
22092209
public Task<TResponse> NodesReloadSecureSettingsAsync<TResponse>(string node_id, ReloadSecureSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))

src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,17 +1772,17 @@ public partial interface IElasticLowLevelClient
17721772
///<param name="metric">A comma-separated list of metrics you wish returned. Leave empty to return all.</param>
17731773
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
17741774
Task<TResponse> NodesInfoAsync<TResponse>(string node_id, string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new();
1775-
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
1775+
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
17761776
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
17771777
TResponse NodesReloadSecureSettingsForAll<TResponse>(ReloadSecureSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new();
1778-
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
1778+
///<summary>POST on /_nodes/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
17791779
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
17801780
Task<TResponse> NodesReloadSecureSettingsForAllAsync<TResponse>(ReloadSecureSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new();
1781-
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
1781+
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
17821782
///<param name="node_id">A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes.</param>
17831783
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
17841784
TResponse NodesReloadSecureSettings<TResponse>(string node_id, ReloadSecureSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new();
1785-
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings</para></summary>
1785+
///<summary>POST on /_nodes/{node_id}/reload_secure_settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings</para></summary>
17861786
///<param name="node_id">A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes.</param>
17871787
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
17881788
Task<TResponse> NodesReloadSecureSettingsAsync<TResponse>(string node_id, ReloadSecureSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new();

0 commit comments

Comments
 (0)