1+ // Licensed to Elasticsearch B.V under one or more agreements.
2+ // Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+ // See the LICENSE file in the project root for more information.
4+ //
5+ // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
6+ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
7+ // ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
8+ // ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
9+ // ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
10+ // ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
11+ // ------------------------------------------------
12+ //
13+ // This file is automatically generated.
14+ // Please do not edit these files manually.
15+ //
16+ // ------------------------------------------------
17+
18+ using Elastic . Transport ;
19+ using System ;
20+ using System . Collections . Generic ;
21+ using System . Linq . Expressions ;
22+ using System . Text . Json ;
23+ using System . Text . Json . Serialization ;
24+
25+ #nullable restore
26+ namespace Elastic . Clients . Elasticsearch . SearchableSnapshots
27+ {
28+ public class SearchableSnapshotsClearCacheRequestParameters : RequestParameters < SearchableSnapshotsClearCacheRequestParameters >
29+ {
30+ [ JsonIgnore ]
31+ public Elastic . Clients . Elasticsearch . ExpandWildcards ? ExpandWildcards { get => Q < Elastic . Clients . Elasticsearch . ExpandWildcards ? > ( "expand_wildcards" ) ; set => Q ( "expand_wildcards" , value ) ; }
32+
33+ [ JsonIgnore ]
34+ public bool ? AllowNoIndices { get => Q < bool ? > ( "allow_no_indices" ) ; set => Q ( "allow_no_indices" , value ) ; }
35+
36+ [ JsonIgnore ]
37+ public bool ? IgnoreUnavailable { get => Q < bool ? > ( "ignore_unavailable" ) ; set => Q ( "ignore_unavailable" , value ) ; }
38+ }
39+
40+ public partial class SearchableSnapshotsClearCacheRequest : PlainRequestBase < SearchableSnapshotsClearCacheRequestParameters >
41+ {
42+ public SearchableSnapshotsClearCacheRequest ( )
43+ {
44+ }
45+
46+ public SearchableSnapshotsClearCacheRequest ( Elastic . Clients . Elasticsearch . Indices ? indices ) : base ( r => r . Optional ( "index" , indices ) )
47+ {
48+ }
49+
50+ internal override ApiUrls ApiUrls => ApiUrlsLookups . SearchableSnapshotsClearCache ;
51+ protected override HttpMethod HttpMethod => HttpMethod . POST ;
52+ protected override bool SupportsBody => false ;
53+ [ JsonIgnore ]
54+ public Elastic . Clients . Elasticsearch . ExpandWildcards ? ExpandWildcards { get => Q < Elastic . Clients . Elasticsearch . ExpandWildcards ? > ( "expand_wildcards" ) ; set => Q ( "expand_wildcards" , value ) ; }
55+
56+ [ JsonIgnore ]
57+ public bool ? AllowNoIndices { get => Q < bool ? > ( "allow_no_indices" ) ; set => Q ( "allow_no_indices" , value ) ; }
58+
59+ [ JsonIgnore ]
60+ public bool ? IgnoreUnavailable { get => Q < bool ? > ( "ignore_unavailable" ) ; set => Q ( "ignore_unavailable" , value ) ; }
61+ }
62+
63+ public sealed partial class SearchableSnapshotsClearCacheRequestDescriptor < TDocument > : RequestDescriptorBase < SearchableSnapshotsClearCacheRequestDescriptor < TDocument > , SearchableSnapshotsClearCacheRequestParameters >
64+ {
65+ internal SearchableSnapshotsClearCacheRequestDescriptor ( Action < SearchableSnapshotsClearCacheRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
66+ public SearchableSnapshotsClearCacheRequestDescriptor ( )
67+ {
68+ }
69+
70+ internal override ApiUrls ApiUrls => ApiUrlsLookups . SearchableSnapshotsClearCache ;
71+ protected override HttpMethod HttpMethod => HttpMethod . POST ;
72+ protected override bool SupportsBody => false ;
73+ public SearchableSnapshotsClearCacheRequestDescriptor < TDocument > AllowNoIndices ( bool ? allowNoIndices = true ) => Qs ( "allow_no_indices" , allowNoIndices ) ;
74+ public SearchableSnapshotsClearCacheRequestDescriptor < TDocument > ExpandWildcards ( Elastic . Clients . Elasticsearch . ExpandWildcards ? expandWildcards ) => Qs ( "expand_wildcards" , expandWildcards ) ;
75+ public SearchableSnapshotsClearCacheRequestDescriptor < TDocument > IgnoreUnavailable ( bool ? ignoreUnavailable = true ) => Qs ( "ignore_unavailable" , ignoreUnavailable ) ;
76+ public SearchableSnapshotsClearCacheRequestDescriptor < TDocument > Indices ( Elastic . Clients . Elasticsearch . Indices ? indices )
77+ {
78+ RouteValues . Optional ( "index" , indices ) ;
79+ return Self ;
80+ }
81+
82+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
83+ {
84+ }
85+ }
86+
87+ public sealed partial class SearchableSnapshotsClearCacheRequestDescriptor : RequestDescriptorBase < SearchableSnapshotsClearCacheRequestDescriptor , SearchableSnapshotsClearCacheRequestParameters >
88+ {
89+ internal SearchableSnapshotsClearCacheRequestDescriptor ( Action < SearchableSnapshotsClearCacheRequestDescriptor > configure ) => configure . Invoke ( this ) ;
90+ public SearchableSnapshotsClearCacheRequestDescriptor ( )
91+ {
92+ }
93+
94+ internal override ApiUrls ApiUrls => ApiUrlsLookups . SearchableSnapshotsClearCache ;
95+ protected override HttpMethod HttpMethod => HttpMethod . POST ;
96+ protected override bool SupportsBody => false ;
97+ public SearchableSnapshotsClearCacheRequestDescriptor AllowNoIndices ( bool ? allowNoIndices = true ) => Qs ( "allow_no_indices" , allowNoIndices ) ;
98+ public SearchableSnapshotsClearCacheRequestDescriptor ExpandWildcards ( Elastic . Clients . Elasticsearch . ExpandWildcards ? expandWildcards ) => Qs ( "expand_wildcards" , expandWildcards ) ;
99+ public SearchableSnapshotsClearCacheRequestDescriptor IgnoreUnavailable ( bool ? ignoreUnavailable = true ) => Qs ( "ignore_unavailable" , ignoreUnavailable ) ;
100+ public SearchableSnapshotsClearCacheRequestDescriptor Indices ( Elastic . Clients . Elasticsearch . Indices ? indices )
101+ {
102+ RouteValues . Optional ( "index" , indices ) ;
103+ return Self ;
104+ }
105+
106+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
107+ {
108+ }
109+ }
110+ }
0 commit comments