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 CloseRequestParameters : RequestParameters < CloseRequestParameters >
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 Elastic . Clients . Elasticsearch . Time ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
41+
42+ [ JsonIgnore ]
43+ public Elastic . Clients . Elasticsearch . Time ? Timeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "timeout" ) ; set => Q ( "timeout" , value ) ; }
44+
45+ [ JsonIgnore ]
46+ public Elastic . Clients . Elasticsearch . WaitForActiveShards ? WaitForActiveShards { get => Q < Elastic . Clients . Elasticsearch . WaitForActiveShards ? > ( "wait_for_active_shards" ) ; set => Q ( "wait_for_active_shards" , value ) ; }
47+ }
48+
49+ public partial class CloseRequest : PlainRequestBase < CloseRequestParameters >
50+ {
51+ public CloseRequest ( Elastic . Clients . Elasticsearch . Indices indices ) : base ( r => r . Required ( "index" , indices ) )
52+ {
53+ }
54+
55+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndexManagementClose ;
56+ protected override HttpMethod HttpMethod => HttpMethod . POST ;
57+ protected override bool SupportsBody => false ;
58+ [ JsonIgnore ]
59+ public bool ? AllowNoIndices { get => Q < bool ? > ( "allow_no_indices" ) ; set => Q ( "allow_no_indices" , value ) ; }
60+
61+ [ JsonIgnore ]
62+ public Elastic . Clients . Elasticsearch . ExpandWildcards ? ExpandWildcards { get => Q < Elastic . Clients . Elasticsearch . ExpandWildcards ? > ( "expand_wildcards" ) ; set => Q ( "expand_wildcards" , value ) ; }
63+
64+ [ JsonIgnore ]
65+ public bool ? IgnoreUnavailable { get => Q < bool ? > ( "ignore_unavailable" ) ; set => Q ( "ignore_unavailable" , value ) ; }
66+
67+ [ JsonIgnore ]
68+ public Elastic . Clients . Elasticsearch . Time ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
69+
70+ [ JsonIgnore ]
71+ public Elastic . Clients . Elasticsearch . Time ? Timeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "timeout" ) ; set => Q ( "timeout" , value ) ; }
72+
73+ [ JsonIgnore ]
74+ public Elastic . Clients . Elasticsearch . WaitForActiveShards ? WaitForActiveShards { get => Q < Elastic . Clients . Elasticsearch . WaitForActiveShards ? > ( "wait_for_active_shards" ) ; set => Q ( "wait_for_active_shards" , value ) ; }
75+ }
76+
77+ public sealed partial class CloseRequestDescriptor < TDocument > : RequestDescriptorBase < CloseRequestDescriptor < TDocument > , CloseRequestParameters >
78+ {
79+ internal CloseRequestDescriptor ( Action < CloseRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
80+ public CloseRequestDescriptor ( Elastic . Clients . Elasticsearch . Indices indices ) : base ( r => r . Required ( "index" , indices ) )
81+ {
82+ }
83+
84+ internal CloseRequestDescriptor ( )
85+ {
86+ }
87+
88+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndexManagementClose ;
89+ protected override HttpMethod HttpMethod => HttpMethod . POST ;
90+ protected override bool SupportsBody => false ;
91+ public CloseRequestDescriptor < TDocument > AllowNoIndices ( bool ? allowNoIndices = true ) => Qs ( "allow_no_indices" , allowNoIndices ) ;
92+ public CloseRequestDescriptor < TDocument > ExpandWildcards ( Elastic . Clients . Elasticsearch . ExpandWildcards ? expandWildcards ) => Qs ( "expand_wildcards" , expandWildcards ) ;
93+ public CloseRequestDescriptor < TDocument > IgnoreUnavailable ( bool ? ignoreUnavailable = true ) => Qs ( "ignore_unavailable" , ignoreUnavailable ) ;
94+ public CloseRequestDescriptor < TDocument > MasterTimeout ( Elastic . Clients . Elasticsearch . Time ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
95+ public CloseRequestDescriptor < TDocument > Timeout ( Elastic . Clients . Elasticsearch . Time ? timeout ) => Qs ( "timeout" , timeout ) ;
96+ public CloseRequestDescriptor < TDocument > WaitForActiveShards ( Elastic . Clients . Elasticsearch . WaitForActiveShards ? waitForActiveShards ) => Qs ( "wait_for_active_shards" , waitForActiveShards ) ;
97+ public CloseRequestDescriptor < TDocument > Indices ( Elastic . Clients . Elasticsearch . Indices indices )
98+ {
99+ RouteValues . Required ( "index" , indices ) ;
100+ return Self ;
101+ }
102+
103+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
104+ {
105+ }
106+ }
107+
108+ public sealed partial class CloseRequestDescriptor : RequestDescriptorBase < CloseRequestDescriptor , CloseRequestParameters >
109+ {
110+ internal CloseRequestDescriptor ( Action < CloseRequestDescriptor > configure ) => configure . Invoke ( this ) ;
111+ public CloseRequestDescriptor ( Elastic . Clients . Elasticsearch . Indices indices ) : base ( r => r . Required ( "index" , indices ) )
112+ {
113+ }
114+
115+ internal CloseRequestDescriptor ( )
116+ {
117+ }
118+
119+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndexManagementClose ;
120+ protected override HttpMethod HttpMethod => HttpMethod . POST ;
121+ protected override bool SupportsBody => false ;
122+ public CloseRequestDescriptor AllowNoIndices ( bool ? allowNoIndices = true ) => Qs ( "allow_no_indices" , allowNoIndices ) ;
123+ public CloseRequestDescriptor ExpandWildcards ( Elastic . Clients . Elasticsearch . ExpandWildcards ? expandWildcards ) => Qs ( "expand_wildcards" , expandWildcards ) ;
124+ public CloseRequestDescriptor IgnoreUnavailable ( bool ? ignoreUnavailable = true ) => Qs ( "ignore_unavailable" , ignoreUnavailable ) ;
125+ public CloseRequestDescriptor MasterTimeout ( Elastic . Clients . Elasticsearch . Time ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
126+ public CloseRequestDescriptor Timeout ( Elastic . Clients . Elasticsearch . Time ? timeout ) => Qs ( "timeout" , timeout ) ;
127+ public CloseRequestDescriptor WaitForActiveShards ( Elastic . Clients . Elasticsearch . WaitForActiveShards ? waitForActiveShards ) => Qs ( "wait_for_active_shards" , waitForActiveShards ) ;
128+ public CloseRequestDescriptor Indices ( Elastic . Clients . Elasticsearch . Indices indices )
129+ {
130+ RouteValues . Required ( "index" , indices ) ;
131+ return Self ;
132+ }
133+
134+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
135+ {
136+ }
137+ }
138+ }
0 commit comments