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 . Nodes
27+ {
28+ public class NodesHotThreadsRequestParameters : RequestParameters < NodesHotThreadsRequestParameters >
29+ {
30+ [ JsonIgnore ]
31+ public bool ? IgnoreIdleThreads { get => Q < bool ? > ( "ignore_idle_threads" ) ; set => Q ( "ignore_idle_threads" , value ) ; }
32+
33+ [ JsonIgnore ]
34+ public Elastic . Clients . Elasticsearch . Time ? Interval { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "interval" ) ; set => Q ( "interval" , value ) ; }
35+
36+ [ JsonIgnore ]
37+ public long ? Snapshots { get => Q < long ? > ( "snapshots" ) ; set => Q ( "snapshots" , 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 long ? Threads { get => Q < long ? > ( "threads" ) ; set => Q ( "threads" , value ) ; }
44+
45+ [ JsonIgnore ]
46+ public Elastic . Clients . Elasticsearch . Time ? Timeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "timeout" ) ; set => Q ( "timeout" , value ) ; }
47+
48+ [ JsonIgnore ]
49+ public Elastic . Clients . Elasticsearch . ThreadType ? Type { get => Q < Elastic . Clients . Elasticsearch . ThreadType ? > ( "type" ) ; set => Q ( "type" , value ) ; }
50+
51+ [ JsonIgnore ]
52+ public Elastic . Clients . Elasticsearch . ThreadType ? Sort { get => Q < Elastic . Clients . Elasticsearch . ThreadType ? > ( "sort" ) ; set => Q ( "sort" , value ) ; }
53+ }
54+
55+ public partial class NodesHotThreadsRequest : PlainRequestBase < NodesHotThreadsRequestParameters >
56+ {
57+ public NodesHotThreadsRequest ( )
58+ {
59+ }
60+
61+ public NodesHotThreadsRequest ( Elastic . Clients . Elasticsearch . NodeIds ? node_id ) : base ( r => r . Optional ( "node_id" , node_id ) )
62+ {
63+ }
64+
65+ internal override ApiUrls ApiUrls => ApiUrlsLookups . NodesHotThreads ;
66+ protected override HttpMethod HttpMethod => HttpMethod . GET ;
67+ protected override bool SupportsBody => false ;
68+ [ JsonIgnore ]
69+ public bool ? IgnoreIdleThreads { get => Q < bool ? > ( "ignore_idle_threads" ) ; set => Q ( "ignore_idle_threads" , value ) ; }
70+
71+ [ JsonIgnore ]
72+ public Elastic . Clients . Elasticsearch . Time ? Interval { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "interval" ) ; set => Q ( "interval" , value ) ; }
73+
74+ [ JsonIgnore ]
75+ public long ? Snapshots { get => Q < long ? > ( "snapshots" ) ; set => Q ( "snapshots" , value ) ; }
76+
77+ [ JsonIgnore ]
78+ public Elastic . Clients . Elasticsearch . Time ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
79+
80+ [ JsonIgnore ]
81+ public long ? Threads { get => Q < long ? > ( "threads" ) ; set => Q ( "threads" , value ) ; }
82+
83+ [ JsonIgnore ]
84+ public Elastic . Clients . Elasticsearch . Time ? Timeout { get => Q < Elastic . Clients . Elasticsearch . Time ? > ( "timeout" ) ; set => Q ( "timeout" , value ) ; }
85+
86+ [ JsonIgnore ]
87+ public Elastic . Clients . Elasticsearch . ThreadType ? Type { get => Q < Elastic . Clients . Elasticsearch . ThreadType ? > ( "type" ) ; set => Q ( "type" , value ) ; }
88+
89+ [ JsonIgnore ]
90+ public Elastic . Clients . Elasticsearch . ThreadType ? Sort { get => Q < Elastic . Clients . Elasticsearch . ThreadType ? > ( "sort" ) ; set => Q ( "sort" , value ) ; }
91+ }
92+
93+ public sealed partial class NodesHotThreadsRequestDescriptor : RequestDescriptorBase < NodesHotThreadsRequestDescriptor , NodesHotThreadsRequestParameters >
94+ {
95+ internal NodesHotThreadsRequestDescriptor ( Action < NodesHotThreadsRequestDescriptor > configure ) => configure . Invoke ( this ) ;
96+ public NodesHotThreadsRequestDescriptor ( )
97+ {
98+ }
99+
100+ internal override ApiUrls ApiUrls => ApiUrlsLookups . NodesHotThreads ;
101+ protected override HttpMethod HttpMethod => HttpMethod . GET ;
102+ protected override bool SupportsBody => false ;
103+ public NodesHotThreadsRequestDescriptor IgnoreIdleThreads ( bool ? ignoreIdleThreads = true ) => Qs ( "ignore_idle_threads" , ignoreIdleThreads ) ;
104+ public NodesHotThreadsRequestDescriptor Interval ( Elastic . Clients . Elasticsearch . Time ? interval ) => Qs ( "interval" , interval ) ;
105+ public NodesHotThreadsRequestDescriptor MasterTimeout ( Elastic . Clients . Elasticsearch . Time ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
106+ public NodesHotThreadsRequestDescriptor Snapshots ( long ? snapshots ) => Qs ( "snapshots" , snapshots ) ;
107+ public NodesHotThreadsRequestDescriptor Sort ( Elastic . Clients . Elasticsearch . ThreadType ? sort ) => Qs ( "sort" , sort ) ;
108+ public NodesHotThreadsRequestDescriptor Threads ( long ? threads ) => Qs ( "threads" , threads ) ;
109+ public NodesHotThreadsRequestDescriptor Timeout ( Elastic . Clients . Elasticsearch . Time ? timeout ) => Qs ( "timeout" , timeout ) ;
110+ public NodesHotThreadsRequestDescriptor Type ( Elastic . Clients . Elasticsearch . ThreadType ? type ) => Qs ( "type" , type ) ;
111+ public NodesHotThreadsRequestDescriptor NodeId ( Elastic . Clients . Elasticsearch . NodeIds ? node_id )
112+ {
113+ RouteValues . Optional ( "node_id" , node_id ) ;
114+ return Self ;
115+ }
116+
117+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
118+ {
119+ }
120+ }
121+ }
0 commit comments