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
+ #nullable restore
19
+
20
+ using Elastic . Clients . Elasticsearch . Serverless . Fluent ;
21
+ using Elastic . Clients . Elasticsearch . Serverless . Requests ;
22
+ using Elastic . Clients . Elasticsearch . Serverless . Serialization ;
23
+ using Elastic . Transport ;
24
+ using System ;
25
+ using System . Collections . Generic ;
26
+ using System . Linq . Expressions ;
27
+ using System . Text . Json ;
28
+ using System . Text . Json . Serialization ;
29
+
30
+ namespace Elastic . Clients . Elasticsearch . Serverless . Ingest ;
31
+
32
+ public sealed partial class GetGeoipDatabaseRequestParameters : RequestParameters
33
+ {
34
+ /// <summary>
35
+ /// <para>
36
+ /// Period to wait for a connection to the master node.
37
+ /// If no response is received before the timeout expires, the request fails and returns an error.
38
+ /// </para>
39
+ /// </summary>
40
+ public Elastic . Clients . Elasticsearch . Serverless . Duration ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Serverless . Duration ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
41
+ }
42
+
43
+ /// <summary>
44
+ /// <para>
45
+ /// Returns information about one or more geoip database configurations.
46
+ /// </para>
47
+ /// </summary>
48
+ public sealed partial class GetGeoipDatabaseRequest : PlainRequest < GetGeoipDatabaseRequestParameters >
49
+ {
50
+ public GetGeoipDatabaseRequest ( )
51
+ {
52
+ }
53
+
54
+ public GetGeoipDatabaseRequest ( Elastic . Clients . Elasticsearch . Serverless . Ids ? id ) : base ( r => r . Optional ( "id" , id ) )
55
+ {
56
+ }
57
+
58
+ internal override ApiUrls ApiUrls => ApiUrlLookup . IngestGetGeoipDatabase ;
59
+
60
+ protected override HttpMethod StaticHttpMethod => HttpMethod . GET ;
61
+
62
+ internal override bool SupportsBody => false ;
63
+
64
+ internal override string OperationName => "ingest.get_geoip_database" ;
65
+
66
+ /// <summary>
67
+ /// <para>
68
+ /// Period to wait for a connection to the master node.
69
+ /// If no response is received before the timeout expires, the request fails and returns an error.
70
+ /// </para>
71
+ /// </summary>
72
+ [ JsonIgnore ]
73
+ public Elastic . Clients . Elasticsearch . Serverless . Duration ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Serverless . Duration ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
74
+ }
75
+
76
+ /// <summary>
77
+ /// <para>
78
+ /// Returns information about one or more geoip database configurations.
79
+ /// </para>
80
+ /// </summary>
81
+ public sealed partial class GetGeoipDatabaseRequestDescriptor < TDocument > : RequestDescriptor < GetGeoipDatabaseRequestDescriptor < TDocument > , GetGeoipDatabaseRequestParameters >
82
+ {
83
+ internal GetGeoipDatabaseRequestDescriptor ( Action < GetGeoipDatabaseRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
84
+
85
+ public GetGeoipDatabaseRequestDescriptor ( Elastic . Clients . Elasticsearch . Serverless . Ids ? id ) : base ( r => r . Optional ( "id" , id ) )
86
+ {
87
+ }
88
+
89
+ public GetGeoipDatabaseRequestDescriptor ( )
90
+ {
91
+ }
92
+
93
+ internal override ApiUrls ApiUrls => ApiUrlLookup . IngestGetGeoipDatabase ;
94
+
95
+ protected override HttpMethod StaticHttpMethod => HttpMethod . GET ;
96
+
97
+ internal override bool SupportsBody => false ;
98
+
99
+ internal override string OperationName => "ingest.get_geoip_database" ;
100
+
101
+ public GetGeoipDatabaseRequestDescriptor < TDocument > MasterTimeout ( Elastic . Clients . Elasticsearch . Serverless . Duration ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
102
+
103
+ public GetGeoipDatabaseRequestDescriptor < TDocument > Id ( Elastic . Clients . Elasticsearch . Serverless . Ids ? id )
104
+ {
105
+ RouteValues . Optional ( "id" , id ) ;
106
+ return Self ;
107
+ }
108
+
109
+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
110
+ {
111
+ }
112
+ }
113
+
114
+ /// <summary>
115
+ /// <para>
116
+ /// Returns information about one or more geoip database configurations.
117
+ /// </para>
118
+ /// </summary>
119
+ public sealed partial class GetGeoipDatabaseRequestDescriptor : RequestDescriptor < GetGeoipDatabaseRequestDescriptor , GetGeoipDatabaseRequestParameters >
120
+ {
121
+ internal GetGeoipDatabaseRequestDescriptor ( Action < GetGeoipDatabaseRequestDescriptor > configure ) => configure . Invoke ( this ) ;
122
+
123
+ public GetGeoipDatabaseRequestDescriptor ( Elastic . Clients . Elasticsearch . Serverless . Ids ? id ) : base ( r => r . Optional ( "id" , id ) )
124
+ {
125
+ }
126
+
127
+ public GetGeoipDatabaseRequestDescriptor ( )
128
+ {
129
+ }
130
+
131
+ internal override ApiUrls ApiUrls => ApiUrlLookup . IngestGetGeoipDatabase ;
132
+
133
+ protected override HttpMethod StaticHttpMethod => HttpMethod . GET ;
134
+
135
+ internal override bool SupportsBody => false ;
136
+
137
+ internal override string OperationName => "ingest.get_geoip_database" ;
138
+
139
+ public GetGeoipDatabaseRequestDescriptor MasterTimeout ( Elastic . Clients . Elasticsearch . Serverless . Duration ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
140
+
141
+ public GetGeoipDatabaseRequestDescriptor Id ( Elastic . Clients . Elasticsearch . Serverless . Ids ? id )
142
+ {
143
+ RouteValues . Optional ( "id" , id ) ;
144
+ return Self ;
145
+ }
146
+
147
+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
148
+ {
149
+ }
150
+ }
0 commit comments