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 . IndexManagement
27+ {
28+ public class MappingRequestParameters : RequestParameters < MappingRequestParameters >
29+ {
30+ [ JsonIgnore ]
31+ public bool ? AllowNoIndices { get => Q < bool ? > ( "allow_no_indices" ) ; set => Q ( "allow_no_indices" , value ) ; }
32+
33+ [ JsonIgnore ]
34+ public Elastic . Clients . Elasticsearch . ExpandWildcards ? ExpandWildcards { get => Q < Elastic . Clients . Elasticsearch . ExpandWildcards ? > ( "expand_wildcards" ) ; set => Q ( "expand_wildcards" , value ) ; }
35+
36+ [ JsonIgnore ]
37+ public bool ? IgnoreUnavailable { get => Q < bool ? > ( "ignore_unavailable" ) ; set => Q ( "ignore_unavailable" , value ) ; }
38+
39+ [ JsonIgnore ]
40+ public bool ? Local { get => Q < bool ? > ( "local" ) ; set => Q ( "local" , value ) ; }
41+
42+ [ JsonIgnore ]
43+ public Elastic . Clients . Elasticsearch . Time ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
44+ }
45+
46+ public partial class MappingRequest : PlainRequestBase < MappingRequestParameters >
47+ {
48+ public MappingRequest ( )
49+ {
50+ }
51+
52+ public MappingRequest ( Elastic . Clients . Elasticsearch . Indices ? indices ) : base ( r => r . Optional ( "index" , indices ) )
53+ {
54+ }
55+
56+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndexManagementGetMapping ;
57+ protected override HttpMethod HttpMethod => HttpMethod . GET ;
58+ protected override bool SupportsBody => false ;
59+ [ JsonIgnore ]
60+ public bool ? AllowNoIndices { get => Q < bool ? > ( "allow_no_indices" ) ; set => Q ( "allow_no_indices" , value ) ; }
61+
62+ [ JsonIgnore ]
63+ public Elastic . Clients . Elasticsearch . ExpandWildcards ? ExpandWildcards { get => Q < Elastic . Clients . Elasticsearch . ExpandWildcards ? > ( "expand_wildcards" ) ; set => Q ( "expand_wildcards" , value ) ; }
64+
65+ [ JsonIgnore ]
66+ public bool ? IgnoreUnavailable { get => Q < bool ? > ( "ignore_unavailable" ) ; set => Q ( "ignore_unavailable" , value ) ; }
67+
68+ [ JsonIgnore ]
69+ public bool ? Local { get => Q < bool ? > ( "local" ) ; set => Q ( "local" , value ) ; }
70+
71+ [ JsonIgnore ]
72+ public Elastic . Clients . Elasticsearch . Time ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
73+ }
74+
75+ public sealed partial class MappingRequestDescriptor < TDocument > : RequestDescriptorBase < MappingRequestDescriptor < TDocument > , MappingRequestParameters >
76+ {
77+ internal MappingRequestDescriptor ( Action < MappingRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
78+ public MappingRequestDescriptor ( )
79+ {
80+ }
81+
82+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndexManagementGetMapping ;
83+ protected override HttpMethod HttpMethod => HttpMethod . GET ;
84+ protected override bool SupportsBody => false ;
85+ public MappingRequestDescriptor < TDocument > AllowNoIndices ( bool ? allowNoIndices = true ) => Qs ( "allow_no_indices" , allowNoIndices ) ;
86+ public MappingRequestDescriptor < TDocument > ExpandWildcards ( Elastic . Clients . Elasticsearch . ExpandWildcards ? expandWildcards ) => Qs ( "expand_wildcards" , expandWildcards ) ;
87+ public MappingRequestDescriptor < TDocument > IgnoreUnavailable ( bool ? ignoreUnavailable = true ) => Qs ( "ignore_unavailable" , ignoreUnavailable ) ;
88+ public MappingRequestDescriptor < TDocument > Local ( bool ? local = true ) => Qs ( "local" , local ) ;
89+ public MappingRequestDescriptor < TDocument > MasterTimeout ( Elastic . Clients . Elasticsearch . Time ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
90+ public MappingRequestDescriptor < TDocument > Indices ( Elastic . Clients . Elasticsearch . Indices ? indices )
91+ {
92+ RouteValues . Optional ( "index" , indices ) ;
93+ return Self ;
94+ }
95+
96+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
97+ {
98+ }
99+ }
100+
101+ public sealed partial class MappingRequestDescriptor : RequestDescriptorBase < MappingRequestDescriptor , MappingRequestParameters >
102+ {
103+ internal MappingRequestDescriptor ( Action < MappingRequestDescriptor > configure ) => configure . Invoke ( this ) ;
104+ public MappingRequestDescriptor ( )
105+ {
106+ }
107+
108+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndexManagementGetMapping ;
109+ protected override HttpMethod HttpMethod => HttpMethod . GET ;
110+ protected override bool SupportsBody => false ;
111+ public MappingRequestDescriptor AllowNoIndices ( bool ? allowNoIndices = true ) => Qs ( "allow_no_indices" , allowNoIndices ) ;
112+ public MappingRequestDescriptor ExpandWildcards ( Elastic . Clients . Elasticsearch . ExpandWildcards ? expandWildcards ) => Qs ( "expand_wildcards" , expandWildcards ) ;
113+ public MappingRequestDescriptor IgnoreUnavailable ( bool ? ignoreUnavailable = true ) => Qs ( "ignore_unavailable" , ignoreUnavailable ) ;
114+ public MappingRequestDescriptor Local ( bool ? local = true ) => Qs ( "local" , local ) ;
115+ public MappingRequestDescriptor MasterTimeout ( Elastic . Clients . Elasticsearch . Time ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
116+ public MappingRequestDescriptor Indices ( Elastic . Clients . Elasticsearch . Indices ? indices )
117+ {
118+ RouteValues . Optional ( "index" , indices ) ;
119+ return Self ;
120+ }
121+
122+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
123+ {
124+ }
125+ }
126+ }
0 commit comments