Skip to content

Commit 9b68cd6

Browse files
Mpdreamzrusscam
authored andcommitted
Ran codegen against the updated 6.4 json rest spec
(cherry picked from commit eda0b3b)
1 parent 9759e8c commit 9b68cd6

File tree

4 files changed

+774
-766
lines changed

4 files changed

+774
-766
lines changed

src/CodeGeneration/ApiGenerator/ApiGenerator.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ public static void Generate(string downloadBranch, params string[] folders)
8383
"xpack.sql.query.json",
8484
"xpack.sql.translate.json",
8585
"xpack.ssl.certificates.json",
86+
87+
"scripts_painless_execute.json",
88+
89+
// 6.4 new API's
90+
91+
"xpack.ml.update_filter.json",
92+
"xpack.rollup.get_rollup_index_caps.json",
93+
"xpack.security.delete_privileges.json",
94+
"xpack.security.get_privileges.json",
95+
"xpack.security.has_privileges.json",
96+
"xpack.security.put_privilege.json",
97+
"xpack.security.put_privileges.json",
8698
};
8799

88100
private static RestApiSpec CreateRestApiSpecModel(string downloadBranch, string[] folders)

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,8 @@ public class GetRequestParameters : RequestParameters<GetRequestParameters>
913913
public class GetScriptRequestParameters : RequestParameters<GetScriptRequestParameters>
914914
{
915915
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
916+
///<summary>Specify timeout for connection to master</summary>
917+
public TimeSpan MasterTimeout { get => Q<TimeSpan>("master_timeout"); set => Q("master_timeout", value); }
916918
}
917919

918920
///<summary>Request options for GetSource<pre>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</pre></summary>
@@ -981,8 +983,10 @@ public class AnalyzeRequestParameters : RequestParameters<AnalyzeRequestParamete
981983
///<summary>The name of the index to scope the operation</summary>
982984
public string IndexQueryString { get => Q<string>("index"); set => Q("index", value); }
983985
///<summary>With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)</summary>
986+
[Obsolete("Scheduled to be removed in 7.0, Erroneously documented as a valid option, no longer document from 6.4 onwards as per https://github.com/elastic/elasticsearch/pull/31795")]
984987
public bool? PreferLocal { get => Q<bool?>("prefer_local"); set => Q("prefer_local", value); }
985988
///<summary>Format of the output</summary>
989+
[Obsolete("Scheduled to be removed in 7.0, Erroneously documented as a valid option, no longer document from 6.4 onwards as per https://github.com/elastic/elasticsearch/pull/31795")]
986990
public Format? Format { get => Q<Format?>("format"); set => Q("format", value); }
987991
}
988992

@@ -1226,6 +1230,8 @@ public class GetIndexRequestParameters : RequestParameters<GetIndexRequestParame
12261230
public bool? FlatSettings { get => Q<bool?>("flat_settings"); set => Q("flat_settings", value); }
12271231
///<summary>Whether to return all default setting for each of the indices.</summary>
12281232
public bool? IncludeDefaults { get => Q<bool?>("include_defaults"); set => Q("include_defaults", value); }
1233+
///<summary>Specify timeout for connection to master</summary>
1234+
public TimeSpan MasterTimeout { get => Q<TimeSpan>("master_timeout"); set => Q("master_timeout", value); }
12291235
}
12301236

12311237
///<summary>Request options for IndicesGetAliasForAll<pre>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</pre></summary>
@@ -1277,6 +1283,8 @@ public class GetMappingRequestParameters : RequestParameters<GetMappingRequestPa
12771283
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
12781284
///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
12791285
public ExpandWildcards? ExpandWildcards { get => Q<ExpandWildcards?>("expand_wildcards"); set => Q("expand_wildcards", value); }
1286+
///<summary>Specify timeout for connection to master</summary>
1287+
public TimeSpan MasterTimeout { get => Q<TimeSpan>("master_timeout"); set => Q("master_timeout", value); }
12801288
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
12811289
public bool? Local { get => Q<bool?>("local"); set => Q("local", value); }
12821290
}
@@ -1285,6 +1293,8 @@ public class GetMappingRequestParameters : RequestParameters<GetMappingRequestPa
12851293
public class GetIndexSettingsRequestParameters : RequestParameters<GetIndexSettingsRequestParameters>
12861294
{
12871295
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
1296+
///<summary>Specify timeout for connection to master</summary>
1297+
public TimeSpan MasterTimeout { get => Q<TimeSpan>("master_timeout"); set => Q("master_timeout", value); }
12881298
///<summary>Whether specified concrete indices should be ignored when unavailable (missing or closed)</summary>
12891299
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
12901300
///<summary>
@@ -1494,6 +1504,8 @@ public class IndicesShardStoresRequestParameters : RequestParameters<IndicesShar
14941504
public class ShrinkIndexRequestParameters : RequestParameters<ShrinkIndexRequestParameters>
14951505
{
14961506
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
1507+
///<summary>whether or not to copy settings from the source index (defaults to false)</summary>
1508+
public bool? CopySettings { get => Q<bool?>("copy_settings"); set => Q("copy_settings", value); }
14971509
///<summary>Explicit operation timeout</summary>
14981510
public TimeSpan Timeout { get => Q<TimeSpan>("timeout"); set => Q("timeout", value); }
14991511
///<summary>Specify timeout for connection to master</summary>
@@ -1506,6 +1518,8 @@ public class ShrinkIndexRequestParameters : RequestParameters<ShrinkIndexRequest
15061518
public class SplitIndexRequestParameters : RequestParameters<SplitIndexRequestParameters>
15071519
{
15081520
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
1521+
///<summary>whether or not to copy settings from the source index (defaults to false)</summary>
1522+
public bool? CopySettings { get => Q<bool?>("copy_settings"); set => Q("copy_settings", value); }
15091523
///<summary>Explicit operation timeout</summary>
15101524
public TimeSpan Timeout { get => Q<TimeSpan>("timeout"); set => Q("timeout", value); }
15111525
///<summary>Specify timeout for connection to master</summary>

0 commit comments

Comments
 (0)