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
27+ {
28+ public class ExistsSourceRequestParameters : RequestParameters < ExistsSourceRequestParameters >
29+ {
30+ [ JsonIgnore ]
31+ public string ? Preference { get => Q < string ? > ( "preference" ) ; set => Q ( "preference" , value ) ; }
32+
33+ [ JsonIgnore ]
34+ public bool ? Realtime { get => Q < bool ? > ( "realtime" ) ; set => Q ( "realtime" , value ) ; }
35+
36+ [ JsonIgnore ]
37+ public bool ? Refresh { get => Q < bool ? > ( "refresh" ) ; set => Q ( "refresh" , value ) ; }
38+
39+ [ JsonIgnore ]
40+ public Elastic . Clients . Elasticsearch . Routing ? Routing { get => Q < Elastic . Clients . Elasticsearch . Routing ? > ( "routing" ) ; set => Q ( "routing" , value ) ; }
41+
42+ [ JsonIgnore ]
43+ public Elastic . Clients . Elasticsearch . SourceConfigParam ? Source { get => Q < Elastic . Clients . Elasticsearch . SourceConfigParam ? > ( "_source" ) ; set => Q ( "_source" , value ) ; }
44+
45+ [ JsonIgnore ]
46+ public Elastic . Clients . Elasticsearch . Fields ? SourceExcludes { get => Q < Elastic . Clients . Elasticsearch . Fields ? > ( "_source_excludes" ) ; set => Q ( "_source_excludes" , value ) ; }
47+
48+ [ JsonIgnore ]
49+ public Elastic . Clients . Elasticsearch . Fields ? SourceIncludes { get => Q < Elastic . Clients . Elasticsearch . Fields ? > ( "_source_includes" ) ; set => Q ( "_source_includes" , value ) ; }
50+
51+ [ JsonIgnore ]
52+ public long ? Version { get => Q < long ? > ( "version" ) ; set => Q ( "version" , value ) ; }
53+
54+ [ JsonIgnore ]
55+ public Elastic . Clients . Elasticsearch . VersionType ? VersionType { get => Q < Elastic . Clients . Elasticsearch . VersionType ? > ( "version_type" ) ; set => Q ( "version_type" , value ) ; }
56+ }
57+
58+ public partial class ExistsSourceRequest : PlainRequestBase < ExistsSourceRequestParameters >
59+ {
60+ public ExistsSourceRequest ( Elastic . Clients . Elasticsearch . IndexName index , Elastic . Clients . Elasticsearch . Id id ) : base ( r => r . Required ( "index" , index ) . Required ( "id" , id ) )
61+ {
62+ }
63+
64+ internal override ApiUrls ApiUrls => ApiUrlsLookups . NoNamespaceExistsSource ;
65+ protected override HttpMethod HttpMethod => HttpMethod . HEAD ;
66+ protected override bool SupportsBody => false ;
67+ [ JsonIgnore ]
68+ public string ? Preference { get => Q < string ? > ( "preference" ) ; set => Q ( "preference" , value ) ; }
69+
70+ [ JsonIgnore ]
71+ public bool ? Realtime { get => Q < bool ? > ( "realtime" ) ; set => Q ( "realtime" , value ) ; }
72+
73+ [ JsonIgnore ]
74+ public bool ? Refresh { get => Q < bool ? > ( "refresh" ) ; set => Q ( "refresh" , value ) ; }
75+
76+ [ JsonIgnore ]
77+ public Elastic . Clients . Elasticsearch . Routing ? Routing { get => Q < Elastic . Clients . Elasticsearch . Routing ? > ( "routing" ) ; set => Q ( "routing" , value ) ; }
78+
79+ [ JsonIgnore ]
80+ public Elastic . Clients . Elasticsearch . SourceConfigParam ? Source { get => Q < Elastic . Clients . Elasticsearch . SourceConfigParam ? > ( "_source" ) ; set => Q ( "_source" , value ) ; }
81+
82+ [ JsonIgnore ]
83+ public Elastic . Clients . Elasticsearch . Fields ? SourceExcludes { get => Q < Elastic . Clients . Elasticsearch . Fields ? > ( "_source_excludes" ) ; set => Q ( "_source_excludes" , value ) ; }
84+
85+ [ JsonIgnore ]
86+ public Elastic . Clients . Elasticsearch . Fields ? SourceIncludes { get => Q < Elastic . Clients . Elasticsearch . Fields ? > ( "_source_includes" ) ; set => Q ( "_source_includes" , value ) ; }
87+
88+ [ JsonIgnore ]
89+ public long ? Version { get => Q < long ? > ( "version" ) ; set => Q ( "version" , value ) ; }
90+
91+ [ JsonIgnore ]
92+ public Elastic . Clients . Elasticsearch . VersionType ? VersionType { get => Q < Elastic . Clients . Elasticsearch . VersionType ? > ( "version_type" ) ; set => Q ( "version_type" , value ) ; }
93+ }
94+
95+ public sealed partial class ExistsSourceRequestDescriptor < TDocument > : RequestDescriptorBase < ExistsSourceRequestDescriptor < TDocument > , ExistsSourceRequestParameters >
96+ {
97+ internal ExistsSourceRequestDescriptor ( Action < ExistsSourceRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
98+ public ExistsSourceRequestDescriptor ( Elastic . Clients . Elasticsearch . IndexName index , Elastic . Clients . Elasticsearch . Id id ) : base ( r => r . Required ( "index" , index ) . Required ( "id" , id ) )
99+ {
100+ }
101+
102+ public ExistsSourceRequestDescriptor ( TDocument document ) : this ( typeof ( TDocument ) , Elasticsearch . Id . From ( document ) )
103+ {
104+ }
105+
106+ public ExistsSourceRequestDescriptor ( TDocument document , IndexName index , Id id ) : this ( index , id )
107+ {
108+ }
109+
110+ public ExistsSourceRequestDescriptor ( TDocument document , IndexName index ) : this ( index , Elasticsearch . Id . From ( document ) )
111+ {
112+ }
113+
114+ public ExistsSourceRequestDescriptor ( TDocument document , Id id ) : this ( typeof ( TDocument ) , id )
115+ {
116+ }
117+
118+ public ExistsSourceRequestDescriptor ( Id id ) : this ( typeof ( TDocument ) , id )
119+ {
120+ }
121+
122+ internal ExistsSourceRequestDescriptor ( )
123+ {
124+ }
125+
126+ internal override ApiUrls ApiUrls => ApiUrlsLookups . NoNamespaceExistsSource ;
127+ protected override HttpMethod HttpMethod => HttpMethod . HEAD ;
128+ protected override bool SupportsBody => false ;
129+ public ExistsSourceRequestDescriptor < TDocument > Source ( Elastic . Clients . Elasticsearch . SourceConfigParam ? source ) => Qs ( "_source" , source ) ;
130+ public ExistsSourceRequestDescriptor < TDocument > SourceExcludes ( Elastic . Clients . Elasticsearch . Fields ? sourceExcludes ) => Qs ( "_source_excludes" , sourceExcludes ) ;
131+ public ExistsSourceRequestDescriptor < TDocument > SourceIncludes ( Elastic . Clients . Elasticsearch . Fields ? sourceIncludes ) => Qs ( "_source_includes" , sourceIncludes ) ;
132+ public ExistsSourceRequestDescriptor < TDocument > Preference ( string ? preference ) => Qs ( "preference" , preference ) ;
133+ public ExistsSourceRequestDescriptor < TDocument > Realtime ( bool ? realtime = true ) => Qs ( "realtime" , realtime ) ;
134+ public ExistsSourceRequestDescriptor < TDocument > Refresh ( bool ? refresh = true ) => Qs ( "refresh" , refresh ) ;
135+ public ExistsSourceRequestDescriptor < TDocument > Routing ( Elastic . Clients . Elasticsearch . Routing ? routing ) => Qs ( "routing" , routing ) ;
136+ public ExistsSourceRequestDescriptor < TDocument > Version ( long ? version ) => Qs ( "version" , version ) ;
137+ public ExistsSourceRequestDescriptor < TDocument > VersionType ( Elastic . Clients . Elasticsearch . VersionType ? versionType ) => Qs ( "version_type" , versionType ) ;
138+ public ExistsSourceRequestDescriptor < TDocument > Id ( Elastic . Clients . Elasticsearch . Id id )
139+ {
140+ RouteValues . Required ( "id" , id ) ;
141+ return Self ;
142+ }
143+
144+ public ExistsSourceRequestDescriptor < TDocument > Index ( Elastic . Clients . Elasticsearch . IndexName index )
145+ {
146+ RouteValues . Required ( "index" , index ) ;
147+ return Self ;
148+ }
149+
150+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
151+ {
152+ }
153+ }
154+
155+ public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptorBase < ExistsSourceRequestDescriptor , ExistsSourceRequestParameters >
156+ {
157+ internal ExistsSourceRequestDescriptor ( Action < ExistsSourceRequestDescriptor > configure ) => configure . Invoke ( this ) ;
158+ public ExistsSourceRequestDescriptor ( Elastic . Clients . Elasticsearch . IndexName index , Elastic . Clients . Elasticsearch . Id id ) : base ( r => r . Required ( "index" , index ) . Required ( "id" , id ) )
159+ {
160+ }
161+
162+ internal ExistsSourceRequestDescriptor ( )
163+ {
164+ }
165+
166+ internal override ApiUrls ApiUrls => ApiUrlsLookups . NoNamespaceExistsSource ;
167+ protected override HttpMethod HttpMethod => HttpMethod . HEAD ;
168+ protected override bool SupportsBody => false ;
169+ public ExistsSourceRequestDescriptor Source ( Elastic . Clients . Elasticsearch . SourceConfigParam ? source ) => Qs ( "_source" , source ) ;
170+ public ExistsSourceRequestDescriptor SourceExcludes ( Elastic . Clients . Elasticsearch . Fields ? sourceExcludes ) => Qs ( "_source_excludes" , sourceExcludes ) ;
171+ public ExistsSourceRequestDescriptor SourceIncludes ( Elastic . Clients . Elasticsearch . Fields ? sourceIncludes ) => Qs ( "_source_includes" , sourceIncludes ) ;
172+ public ExistsSourceRequestDescriptor Preference ( string ? preference ) => Qs ( "preference" , preference ) ;
173+ public ExistsSourceRequestDescriptor Realtime ( bool ? realtime = true ) => Qs ( "realtime" , realtime ) ;
174+ public ExistsSourceRequestDescriptor Refresh ( bool ? refresh = true ) => Qs ( "refresh" , refresh ) ;
175+ public ExistsSourceRequestDescriptor Routing ( Elastic . Clients . Elasticsearch . Routing ? routing ) => Qs ( "routing" , routing ) ;
176+ public ExistsSourceRequestDescriptor Version ( long ? version ) => Qs ( "version" , version ) ;
177+ public ExistsSourceRequestDescriptor VersionType ( Elastic . Clients . Elasticsearch . VersionType ? versionType ) => Qs ( "version_type" , versionType ) ;
178+ public ExistsSourceRequestDescriptor Id ( Elastic . Clients . Elasticsearch . Id id )
179+ {
180+ RouteValues . Required ( "id" , id ) ;
181+ return Self ;
182+ }
183+
184+ public ExistsSourceRequestDescriptor Index ( Elastic . Clients . Elasticsearch . IndexName index )
185+ {
186+ RouteValues . Required ( "index" , index ) ;
187+ return Self ;
188+ }
189+
190+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
191+ {
192+ }
193+ }
194+ }
0 commit comments