7
7
using System . Runtime . Serialization ;
8
8
9
9
//This file contains all the typed enums that the client rest api spec exposes.
10
- //This file is automatically generated from https://github.com/elastic/elasticsearch/tree/5.5 /rest-api-spec
11
- //Generated from commit 5.5
10
+ //This file is automatically generated from https://github.com/elastic/elasticsearch/tree/v6.0.0-alpha1 /rest-api-spec
11
+ //Generated from commit v6.0.0-alpha1
12
12
13
13
namespace Elasticsearch . Net
14
14
{
@@ -159,16 +159,6 @@ public enum SearchType
159
159
DfsQueryThenFetch
160
160
}
161
161
162
- public enum SuggestMode
163
- {
164
- [ EnumMember ( Value = "missing" ) ]
165
- Missing ,
166
- [ EnumMember ( Value = "popular" ) ]
167
- Popular ,
168
- [ EnumMember ( Value = "always" ) ]
169
- Always
170
- }
171
-
172
162
public enum OpType
173
163
{
174
164
[ EnumMember ( Value = "index" ) ]
@@ -195,10 +185,14 @@ public enum ThreadType
195
185
Block
196
186
}
197
187
198
- public enum PercolateFormat
188
+ public enum SuggestMode
199
189
{
200
- [ EnumMember ( Value = "ids" ) ]
201
- Ids
190
+ [ EnumMember ( Value = "missing" ) ]
191
+ Missing ,
192
+ [ EnumMember ( Value = "popular" ) ]
193
+ Popular ,
194
+ [ EnumMember ( Value = "always" ) ]
195
+ Always
202
196
}
203
197
204
198
public enum GroupBy
@@ -257,24 +251,22 @@ [Flags]public enum IndicesStatsMetric
257
251
Indexing = 1 << 6 ,
258
252
[ EnumMember ( Value = "merge" ) ]
259
253
Merge = 1 << 7 ,
260
- [ EnumMember ( Value = "percolate" ) ]
261
- Percolate = 1 << 8 ,
262
254
[ EnumMember ( Value = "request_cache" ) ]
263
- RequestCache = 1 << 9 ,
255
+ RequestCache = 1 << 8 ,
264
256
[ EnumMember ( Value = "refresh" ) ]
265
- Refresh = 1 << 10 ,
257
+ Refresh = 1 << 9 ,
266
258
[ EnumMember ( Value = "search" ) ]
267
- Search = 1 << 11 ,
259
+ Search = 1 << 10 ,
268
260
[ EnumMember ( Value = "segments" ) ]
269
- Segments = 1 << 12 ,
261
+ Segments = 1 << 11 ,
270
262
[ EnumMember ( Value = "store" ) ]
271
- Store = 1 << 13 ,
263
+ Store = 1 << 12 ,
272
264
[ EnumMember ( Value = "warmer" ) ]
273
- Warmer = 1 << 14 ,
265
+ Warmer = 1 << 13 ,
274
266
[ EnumMember ( Value = "suggest" ) ]
275
- Suggest = 1 << 15 ,
267
+ Suggest = 1 << 14 ,
276
268
[ EnumMember ( Value = "_all" ) ]
277
- All = 1 << 16
269
+ All = 1 << 15
278
270
}
279
271
280
272
[ Flags ] public enum NodesInfoMetric
@@ -343,24 +335,22 @@ [Flags]public enum NodesStatsIndexMetric
343
335
Indexing = 1 << 6 ,
344
336
[ EnumMember ( Value = "merge" ) ]
345
337
Merge = 1 << 7 ,
346
- [ EnumMember ( Value = "percolate" ) ]
347
- Percolate = 1 << 8 ,
348
338
[ EnumMember ( Value = "request_cache" ) ]
349
- RequestCache = 1 << 9 ,
339
+ RequestCache = 1 << 8 ,
350
340
[ EnumMember ( Value = "refresh" ) ]
351
- Refresh = 1 << 10 ,
341
+ Refresh = 1 << 9 ,
352
342
[ EnumMember ( Value = "search" ) ]
353
- Search = 1 << 11 ,
343
+ Search = 1 << 10 ,
354
344
[ EnumMember ( Value = "segments" ) ]
355
- Segments = 1 << 12 ,
345
+ Segments = 1 << 11 ,
356
346
[ EnumMember ( Value = "store" ) ]
357
- Store = 1 << 13 ,
347
+ Store = 1 << 12 ,
358
348
[ EnumMember ( Value = "warmer" ) ]
359
- Warmer = 1 << 14 ,
349
+ Warmer = 1 << 13 ,
360
350
[ EnumMember ( Value = "suggest" ) ]
361
- Suggest = 1 << 15 ,
351
+ Suggest = 1 << 14 ,
362
352
[ EnumMember ( Value = "_all" ) ]
363
- All = 1 << 16
353
+ All = 1 << 15
364
354
}
365
355
366
356
[ Flags ] public enum WatcherStatsMetric
@@ -539,18 +529,6 @@ public static string GetStringValue(this SearchType enumValue)
539
529
throw new ArgumentException ( $ "'{ enumValue . ToString ( ) } ' is not a valid value for enum 'SearchType'") ;
540
530
}
541
531
542
- public static string GetStringValue ( this SuggestMode enumValue )
543
- {
544
-
545
- switch ( enumValue )
546
- {
547
- case SuggestMode . Missing : return "missing" ;
548
- case SuggestMode . Popular : return "popular" ;
549
- case SuggestMode . Always : return "always" ;
550
- }
551
- throw new ArgumentException ( $ "'{ enumValue . ToString ( ) } ' is not a valid value for enum 'SuggestMode'") ;
552
- }
553
-
554
532
public static string GetStringValue ( this OpType enumValue )
555
533
{
556
534
@@ -585,14 +563,16 @@ public static string GetStringValue(this ThreadType enumValue)
585
563
throw new ArgumentException ( $ "'{ enumValue . ToString ( ) } ' is not a valid value for enum 'ThreadType'") ;
586
564
}
587
565
588
- public static string GetStringValue ( this PercolateFormat enumValue )
566
+ public static string GetStringValue ( this SuggestMode enumValue )
589
567
{
590
568
591
569
switch ( enumValue )
592
570
{
593
- case PercolateFormat . Ids : return "ids" ;
571
+ case SuggestMode . Missing : return "missing" ;
572
+ case SuggestMode . Popular : return "popular" ;
573
+ case SuggestMode . Always : return "always" ;
594
574
}
595
- throw new ArgumentException ( $ "'{ enumValue . ToString ( ) } ' is not a valid value for enum 'PercolateFormat '") ;
575
+ throw new ArgumentException ( $ "'{ enumValue . ToString ( ) } ' is not a valid value for enum 'SuggestMode '") ;
596
576
}
597
577
598
578
public static string GetStringValue ( this GroupBy enumValue )
@@ -644,7 +624,6 @@ public static string GetStringValue(this IndicesStatsMetric enumValue)
644
624
if ( ( enumValue & IndicesStatsMetric . Get ) != 0 ) list . Add ( "get" ) ;
645
625
if ( ( enumValue & IndicesStatsMetric . Indexing ) != 0 ) list . Add ( "indexing" ) ;
646
626
if ( ( enumValue & IndicesStatsMetric . Merge ) != 0 ) list . Add ( "merge" ) ;
647
- if ( ( enumValue & IndicesStatsMetric . Percolate ) != 0 ) list . Add ( "percolate" ) ;
648
627
if ( ( enumValue & IndicesStatsMetric . RequestCache ) != 0 ) list . Add ( "request_cache" ) ;
649
628
if ( ( enumValue & IndicesStatsMetric . Refresh ) != 0 ) list . Add ( "refresh" ) ;
650
629
if ( ( enumValue & IndicesStatsMetric . Search ) != 0 ) list . Add ( "search" ) ;
@@ -702,7 +681,6 @@ public static string GetStringValue(this NodesStatsIndexMetric enumValue)
702
681
if ( ( enumValue & NodesStatsIndexMetric . Get ) != 0 ) list . Add ( "get" ) ;
703
682
if ( ( enumValue & NodesStatsIndexMetric . Indexing ) != 0 ) list . Add ( "indexing" ) ;
704
683
if ( ( enumValue & NodesStatsIndexMetric . Merge ) != 0 ) list . Add ( "merge" ) ;
705
- if ( ( enumValue & NodesStatsIndexMetric . Percolate ) != 0 ) list . Add ( "percolate" ) ;
706
684
if ( ( enumValue & NodesStatsIndexMetric . RequestCache ) != 0 ) list . Add ( "request_cache" ) ;
707
685
if ( ( enumValue & NodesStatsIndexMetric . Refresh ) != 0 ) list . Add ( "refresh" ) ;
708
686
if ( ( enumValue & NodesStatsIndexMetric . Search ) != 0 ) list . Add ( "search" ) ;
@@ -740,11 +718,10 @@ static KnownEnums()
740
718
EnumStringResolvers . TryAdd ( typeof ( VersionType ) , ( e ) => GetStringValue ( ( VersionType ) e ) ) ;
741
719
EnumStringResolvers . TryAdd ( typeof ( Conflicts ) , ( e ) => GetStringValue ( ( Conflicts ) e ) ) ;
742
720
EnumStringResolvers . TryAdd ( typeof ( SearchType ) , ( e ) => GetStringValue ( ( SearchType ) e ) ) ;
743
- EnumStringResolvers . TryAdd ( typeof ( SuggestMode ) , ( e ) => GetStringValue ( ( SuggestMode ) e ) ) ;
744
721
EnumStringResolvers . TryAdd ( typeof ( OpType ) , ( e ) => GetStringValue ( ( OpType ) e ) ) ;
745
722
EnumStringResolvers . TryAdd ( typeof ( Format ) , ( e ) => GetStringValue ( ( Format ) e ) ) ;
746
723
EnumStringResolvers . TryAdd ( typeof ( ThreadType ) , ( e ) => GetStringValue ( ( ThreadType ) e ) ) ;
747
- EnumStringResolvers . TryAdd ( typeof ( PercolateFormat ) , ( e ) => GetStringValue ( ( PercolateFormat ) e ) ) ;
724
+ EnumStringResolvers . TryAdd ( typeof ( SuggestMode ) , ( e ) => GetStringValue ( ( SuggestMode ) e ) ) ;
748
725
EnumStringResolvers . TryAdd ( typeof ( GroupBy ) , ( e ) => GetStringValue ( ( GroupBy ) e ) ) ;
749
726
EnumStringResolvers . TryAdd ( typeof ( ClusterStateMetric ) , ( e ) => GetStringValue ( ( ClusterStateMetric ) e ) ) ;
750
727
EnumStringResolvers . TryAdd ( typeof ( Feature ) , ( e ) => GetStringValue ( ( Feature ) e ) ) ;
0 commit comments