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 DeleteGeoipDatabaseRequestParameters : 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+ /// <summary>
43+ /// <para>
44+ /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
45+ /// </para>
46+ /// </summary>
47+ public Elastic . Clients . Elasticsearch . Serverless . Duration ? Timeout { get => Q < Elastic . Clients . Elasticsearch . Serverless . Duration ? > ( "timeout" ) ; set => Q ( "timeout" , value ) ; }
48+ }
49+ 50+ /// <summary>
51+ /// <para>
52+ /// Deletes a geoip database configuration.
53+ /// </para>
54+ /// </summary>
55+ public sealed partial class DeleteGeoipDatabaseRequest : PlainRequest < DeleteGeoipDatabaseRequestParameters >
56+ {
57+ public DeleteGeoipDatabaseRequest ( Elastic . Clients . Elasticsearch . Serverless . Ids id ) : base ( r => r . Required ( "id" , id ) )
58+ {
59+ }
60+ 61+ internal override ApiUrls ApiUrls => ApiUrlLookup . IngestDeleteGeoipDatabase ;
62+ 63+ protected override HttpMethod StaticHttpMethod => HttpMethod . DELETE ;
64+ 65+ internal override bool SupportsBody => false ;
66+ 67+ internal override string OperationName => "ingest.delete_geoip_database" ;
68+ 69+ /// <summary>
70+ /// <para>
71+ /// Period to wait for a connection to the master node.
72+ /// If no response is received before the timeout expires, the request fails and returns an error.
73+ /// </para>
74+ /// </summary>
75+ [ JsonIgnore ]
76+ public Elastic . Clients . Elasticsearch . Serverless . Duration ? MasterTimeout { get => Q < Elastic . Clients . Elasticsearch . Serverless . Duration ? > ( "master_timeout" ) ; set => Q ( "master_timeout" , value ) ; }
77+ 78+ /// <summary>
79+ /// <para>
80+ /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
81+ /// </para>
82+ /// </summary>
83+ [ JsonIgnore ]
84+ public Elastic . Clients . Elasticsearch . Serverless . Duration ? Timeout { get => Q < Elastic . Clients . Elasticsearch . Serverless . Duration ? > ( "timeout" ) ; set => Q ( "timeout" , value ) ; }
85+ }
86+ 87+ /// <summary>
88+ /// <para>
89+ /// Deletes a geoip database configuration.
90+ /// </para>
91+ /// </summary>
92+ public sealed partial class DeleteGeoipDatabaseRequestDescriptor < TDocument > : RequestDescriptor < DeleteGeoipDatabaseRequestDescriptor < TDocument > , DeleteGeoipDatabaseRequestParameters >
93+ {
94+ internal DeleteGeoipDatabaseRequestDescriptor ( Action < DeleteGeoipDatabaseRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
95+ 96+ public DeleteGeoipDatabaseRequestDescriptor ( Elastic . Clients . Elasticsearch . Serverless . Ids id ) : base ( r => r . Required ( "id" , id ) )
97+ {
98+ }
99+ 100+ internal override ApiUrls ApiUrls => ApiUrlLookup . IngestDeleteGeoipDatabase ;
101+ 102+ protected override HttpMethod StaticHttpMethod => HttpMethod . DELETE ;
103+ 104+ internal override bool SupportsBody => false ;
105+ 106+ internal override string OperationName => "ingest.delete_geoip_database" ;
107+ 108+ public DeleteGeoipDatabaseRequestDescriptor < TDocument > MasterTimeout ( Elastic . Clients . Elasticsearch . Serverless . Duration ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
109+ public DeleteGeoipDatabaseRequestDescriptor < TDocument > Timeout ( Elastic . Clients . Elasticsearch . Serverless . Duration ? timeout ) => Qs ( "timeout" , timeout ) ;
110+ 111+ public DeleteGeoipDatabaseRequestDescriptor < TDocument > Id ( Elastic . Clients . Elasticsearch . Serverless . Ids id )
112+ {
113+ RouteValues . Required ( "id" , id ) ;
114+ return Self ;
115+ }
116+ 117+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
118+ {
119+ }
120+ }
121+ 122+ /// <summary>
123+ /// <para>
124+ /// Deletes a geoip database configuration.
125+ /// </para>
126+ /// </summary>
127+ public sealed partial class DeleteGeoipDatabaseRequestDescriptor : RequestDescriptor < DeleteGeoipDatabaseRequestDescriptor , DeleteGeoipDatabaseRequestParameters >
128+ {
129+ internal DeleteGeoipDatabaseRequestDescriptor ( Action < DeleteGeoipDatabaseRequestDescriptor > configure ) => configure . Invoke ( this ) ;
130+ 131+ public DeleteGeoipDatabaseRequestDescriptor ( Elastic . Clients . Elasticsearch . Serverless . Ids id ) : base ( r => r . Required ( "id" , id ) )
132+ {
133+ }
134+ 135+ internal override ApiUrls ApiUrls => ApiUrlLookup . IngestDeleteGeoipDatabase ;
136+ 137+ protected override HttpMethod StaticHttpMethod => HttpMethod . DELETE ;
138+ 139+ internal override bool SupportsBody => false ;
140+ 141+ internal override string OperationName => "ingest.delete_geoip_database" ;
142+ 143+ public DeleteGeoipDatabaseRequestDescriptor MasterTimeout ( Elastic . Clients . Elasticsearch . Serverless . Duration ? masterTimeout ) => Qs ( "master_timeout" , masterTimeout ) ;
144+ public DeleteGeoipDatabaseRequestDescriptor Timeout ( Elastic . Clients . Elasticsearch . Serverless . Duration ? timeout ) => Qs ( "timeout" , timeout ) ;
145+ 146+ public DeleteGeoipDatabaseRequestDescriptor Id ( Elastic . Clients . Elasticsearch . Serverless . Ids id )
147+ {
148+ RouteValues . Required ( "id" , id ) ;
149+ return Self ;
150+ }
151+ 152+ protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
153+ {
154+ }
155+ }
0 commit comments