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