Skip to content

Commit baa108f

Browse files
committed
updated raw client to match 394e3e45e8 from https://github.com/elasticsearch/elasticsearch-rest-api-spec
1 parent c420da1 commit baa108f

File tree

8 files changed

+346
-60
lines changed

8 files changed

+346
-60
lines changed

q

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
diff --git a/src/Nest/Enums/Enums.Generated.cs b/src/Nest/Enums/Enums.Generated.cs
2+
index 64c2216..5633f37 100644
3+
--- a/src/Nest/Enums/Enums.Generated.cs
4+
+++ b/src/Nest/Enums/Enums.Generated.cs
5+
@@ -1,3 +1,4 @@
6+
+
7+
using System;
8+
using System.Collections.Generic;
9+
using System.Linq;
10+
@@ -8,7 +9,7 @@ using System.Runtime.Serialization;
11+

12+
///This file contains all the typed enums that the client rest api spec exposes.
13+
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
14+
-///Generated of commit 8537d3f55e
15+
+///Generated of commit 394e3e45e8
16+
namespace Nest
17+
{
18+

19+
@@ -16,7 +17,7 @@ namespace Nest
20+
[JsonConverter(typeof(StringEnumConverter))]
21+
public enum ConsistencyOptions 
22+
{
23+
- [EnumMember(Value = "one")]
24+
+  [EnumMember(Value = "one")]
25+
One,
26+
[EnumMember(Value = "quorum")]
27+
Quorum,
28+
@@ -28,7 +29,7 @@ namespace Nest
29+
[JsonConverter(typeof(StringEnumConverter))]
30+
public enum ReplicationOptions 
31+
{
32+
- [EnumMember(Value = "sync")]
33+
+  [EnumMember(Value = "sync")]
34+
Sync,
35+
[EnumMember(Value = "async")]
36+
Async
37+
@@ -38,7 +39,7 @@ namespace Nest
38+
[JsonConverter(typeof(StringEnumConverter))]
39+
public enum LevelOptions 
40+
{
41+
- [EnumMember(Value = "cluster")]
42+
+  [EnumMember(Value = "cluster")]
43+
Cluster,
44+
[EnumMember(Value = "indices")]
45+
Indices,
46+
@@ -50,7 +51,7 @@ namespace Nest
47+
[JsonConverter(typeof(StringEnumConverter))]
48+
public enum WaitForStatusOptions 
49+
{
50+
- [EnumMember(Value = "green")]
51+
+  [EnumMember(Value = "green")]
52+
Green,
53+
[EnumMember(Value = "yellow")]
54+
Yellow,
55+
@@ -62,7 +63,7 @@ namespace Nest
56+
[JsonConverter(typeof(StringEnumConverter))]
57+
public enum TypeOptions 
58+
{
59+
- [EnumMember(Value = "cpu")]
60+
+  [EnumMember(Value = "cpu")]
61+
Cpu,
62+
[EnumMember(Value = "wait")]
63+
Wait,
64+
@@ -74,7 +75,7 @@ namespace Nest
65+
[JsonConverter(typeof(StringEnumConverter))]
66+
public enum IgnoreIndicesOptions 
67+
{
68+
- [EnumMember(Value = "none")]
69+
+  [EnumMember(Value = "none")]
70+
None,
71+
[EnumMember(Value = "missing")]
72+
Missing
73+
@@ -84,7 +85,7 @@ namespace Nest
74+
[JsonConverter(typeof(StringEnumConverter))]
75+
public enum VersionTypeOptions 
76+
{
77+
- [EnumMember(Value = "internal")]
78+
+  [EnumMember(Value = "internal")]
79+
Internal,
80+
[EnumMember(Value = "external")]
81+
External
82+
@@ -94,7 +95,7 @@ namespace Nest
83+
[JsonConverter(typeof(StringEnumConverter))]
84+
public enum DefaultOperatorOptions 
85+
{
86+
- [EnumMember(Value = "AND")]
87+
+  [EnumMember(Value = "AND")]
88+
And,
89+
[EnumMember(Value = "OR")]
90+
Or
91+
@@ -104,7 +105,7 @@ namespace Nest
92+
[JsonConverter(typeof(StringEnumConverter))]
93+
public enum OpTypeOptions 
94+
{
95+
- [EnumMember(Value = "index")]
96+
+  [EnumMember(Value = "index")]
97+
Index,
98+
[EnumMember(Value = "create")]
99+
Create
100+
@@ -114,7 +115,7 @@ namespace Nest
101+
[JsonConverter(typeof(StringEnumConverter))]
102+
public enum FormatOptions 
103+
{
104+
- [EnumMember(Value = "detailed")]
105+
+  [EnumMember(Value = "detailed")]
106+
Detailed,
107+
[EnumMember(Value = "text")]
108+
Text
109+
@@ -124,7 +125,7 @@ namespace Nest
110+
[JsonConverter(typeof(StringEnumConverter))]
111+
public enum SearchTypeOptions 
112+
{
113+
- [EnumMember(Value = "query_then_fetch")]
114+
+  [EnumMember(Value = "query_then_fetch")]
115+
QueryThenFetch,
116+
[EnumMember(Value = "query_and_fetch")]
117+
QueryAndFetch,
118+
@@ -142,7 +143,7 @@ namespace Nest
119+
[JsonConverter(typeof(StringEnumConverter))]
120+
public enum SuggestModeOptions 
121+
{
122+
- [EnumMember(Value = "missing")]
123+
+  [EnumMember(Value = "missing")]
124+
Missing,
125+
[EnumMember(Value = "popular")]
126+
Popular,
127+
@@ -154,7 +155,7 @@ namespace Nest
128+
[JsonConverter(typeof(StringEnumConverter))]
129+
public enum MetricFamilyOptions 
130+
{
131+
- [EnumMember(Value = "all")]
132+
+  [EnumMember(Value = "all")]
133+
All,
134+
[EnumMember(Value = "fs")]
135+
Fs,
136+
@@ -180,7 +181,7 @@ namespace Nest
137+
[JsonConverter(typeof(StringEnumConverter))]
138+
public enum MetricOptions 
139+
{
140+
- [EnumMember(Value = "completion")]
141+
+  [EnumMember(Value = "completion")]
142+
Completion,
143+
[EnumMember(Value = "docs")]
144+
Docs,
145+
diff --git a/src/Nest/IRawElasticClient.Generated.cs b/src/Nest/IRawElasticClient.Generated.cs
146+
index f5ceeda..885917d 100644
147+
--- a/src/Nest/IRawElasticClient.Generated.cs
148+
+++ b/src/Nest/IRawElasticClient.Generated.cs
149+
@@ -14,7 +14,7 @@ namespace Nest
150+
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
151+
///</pre>
152+
///<pre>
153+
- ///Generated of commit 8537d3f55e
154+
+ ///Generated of commit 394e3e45e8
155+
///</pre>
156+
///</summary>
157+
public interface IRawElasticClient
158+
diff --git a/src/Nest/QueryStringParameters/QueryStringParameters.Generated.cs b/src/Nest/QueryStringParameters/QueryStringParameters.Generated.cs
159+
index 4445918..af82f57 100644
160+
--- a/src/Nest/QueryStringParameters/QueryStringParameters.Generated.cs
161+
+++ b/src/Nest/QueryStringParameters/QueryStringParameters.Generated.cs
162+
@@ -5,7 +5,7 @@ using System.Text;
163+

164+
///This file contains all the typed querystring parameters that are generated of the client spec.
165+
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
166+
-///Generated of commit 8537d3f55e
167+
+///Generated of commit 394e3e45e8
168+

169+
namespace Nest
170+
{
171+
@@ -46,6 +46,13 @@ namespace Nest
172+
return this;
173+
}
174+

175+
+ ///<summary>Explicit operation timeout</summary>
176+
+ public BulkPostQueryString Timeout(string timeout)
177+
+ {
178+
+ this.Add("timeout", this.CreateString(timeout));
179+
+ return this;
180+
+ }
181+
+
182+
}
183+

184+

185+
@@ -84,6 +91,13 @@ namespace Nest
186+
return this;
187+
}
188+

189+
+ ///<summary>Explicit operation timeout</summary>
190+
+ public BulkPutQueryString Timeout(string timeout)
191+
+ {
192+
+ this.Add("timeout", this.CreateString(timeout));
193+
+ return this;
194+
+ }
195+
+
196+
}
197+

198+

199+
@@ -2147,7 +2161,7 @@ namespace Nest
200+
///</summary>
201+
public class IndicesGetFieldMappingGetQueryString : FluentQueryString<IndicesGetFieldMappingGetQueryString> 
202+
{
203+
- ///<summary>specifies default mapping values should be returned</summary>
204+
+ ///<summary>Whether the default mapping values should be returned as well</summary>
205+
public IndicesGetFieldMappingGetQueryString IncludeDefaults(bool include_defaults)
206+
{
207+
this.Add("include_defaults", this.CreateString(include_defaults));
208+
diff --git a/src/RawClientGenerator/Cache/root.html b/src/RawClientGenerator/Cache/root.html
209+
index 4285b99..4eef0bb 100644
210+
--- a/src/RawClientGenerator/Cache/root.html
211+
+++ b/src/RawClientGenerator/Cache/root.html
212+
@@ -15,7 +15,7 @@
213+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png" />
214+
<link rel="logo" type="image/svg" href="https://github-media-downloads.s3.amazonaws.com/github-logo.svg" />
215+
<meta property="og:image" content="https://github.global.ssl.fastly.net/images/modules/logos_page/Octocat.png">
216+
- <meta name="hostname" content="github-fe120-cp1-prd.iad.github.net">
217+
+ <meta name="hostname" content="github-fe133-cp1-prd.iad.github.net">
218+
<meta name="ruby" content="ruby 1.9.3p194-tcs-github-tcmalloc (e1c0c3f392) [x86_64-linux]">
219+
<link rel="assets" href="https://github.global.ssl.fastly.net/">
220+
<link rel="conduit-xhr" href="https://ghconduit.com:25035/">
221+
@@ -26,7 +26,7 @@
222+
<meta name="msapplication-TileImage" content="/windows-tile.png" />
223+
<meta name="msapplication-TileColor" content="#ffffff" />
224+
<meta name="selected-link" value="repo_source" data-pjax-transient />
225+
- <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="collector-cdn.github.com" name="octolytics-script-host" /><meta content="github" name="octolytics-app-id" /><meta content="2599D901:7CE7:23105F8:52988115" name="octolytics-dimension-request_id" />
226+
+ <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="collector-cdn.github.com" name="octolytics-script-host" /><meta content="github" name="octolytics-app-id" /><meta content="2599D901:263E:7473A57:52988178" name="octolytics-dimension-request_id" />
227+

228+

229+

230+
@@ -34,7 +34,7 @@
231+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
232+

233+
<meta content="authenticity_token" name="csrf-param" />
234+
-<meta content="pSiCb/EhkcWoikJEx2uCFqwEKwDmS6i/83drhQz0WRw=" name="csrf-token" />
235+
+<meta content="QfNVK0FQcNe55UGfq3CseCGCZgp8A01dvvDRFBizaG4=" name="csrf-token" />
236+

237+
<link href="https://github.global.ssl.fastly.net/assets/github-0f5611c27a5a2a6928dc6e99d63581265b963e34.css" media="all" rel="stylesheet" type="text/css" />
238+
<link href="https://github.global.ssl.fastly.net/assets/github2-6102d7944435d804d870f38bf20f1e16fe40a4d0.css" media="all" rel="stylesheet" type="text/css" />
239+
@@ -1324,7 +1324,7 @@ This reverts commit 9834e49a86c609e0e7dc7e28e0ee94c97eb4628c.">Revert "Corrected
240+
</a>
241+

242+
<ul class="site-footer-links">
243+
- <li>&copy; 2013 <span title="0.05166s from github-fe120-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
244+
+ <li>&copy; 2013 <span title="0.04594s from github-fe133-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
245+
<li><a href="/site/terms">Terms</a></li>
246+
<li><a href="/site/privacy">Privacy</a></li>
247+
<li><a href="/security">Security</a></li>
248+
diff --git a/src/RawClientGenerator/Views/Enums.Generated.cshtml b/src/RawClientGenerator/Views/Enums.Generated.cshtml
249+
index ed58374..840226c 100644
250+
--- a/src/RawClientGenerator/Views/Enums.Generated.cshtml
251+
+++ b/src/RawClientGenerator/Views/Enums.Generated.cshtml
252+
@@ -30,7 +30,7 @@ namespace Nest
253+
public enum @e.Name 
254+
{
255+
@Raw(string.Join(",\r\n\t\t", e.Options.Select(CreateEnum)))
256+
- }
257+
+ }
258+
</text>
259+
}
260+
}
261+
warning: LF will be replaced by CRLF in src/RawClientGenerator/Cache/root.html.
262+
The file will have its original line endings in your working directory.

0 commit comments

Comments
 (0)