Skip to content

Commit 964adce

Browse files
floberndgithub-actions[bot]
authored andcommitted
Regenerate client using the latest specification (#8324)
1 parent 431cc3a commit 964adce

34 files changed

+4560
-38
lines changed

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs

+2
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ internal static class ApiUrlLookup
8989
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
9090
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
9191
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
92+
internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
9293
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
9394
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
9495
internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" });
9596
internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" });
9697
internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" });
98+
internal static ApiUrls IngestPutGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
9799
internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
98100
internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" });
99101
internal static ApiUrls LicenseManagementGet = new ApiUrls(new[] { "_license" });
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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.Serialization;
22+
using Elastic.Transport.Products.Elasticsearch;
23+
using System;
24+
using System.Collections.Generic;
25+
using System.Text.Json.Serialization;
26+
27+
namespace Elastic.Clients.Elasticsearch.Serverless.Ingest;
28+
29+
public sealed partial class DeleteGeoipDatabaseResponse : ElasticsearchResponse
30+
{
31+
/// <summary>
32+
/// <para>
33+
/// For a successful response, this value is always true. On failure, an exception is returned instead.
34+
/// </para>
35+
/// </summary>
36+
[JsonInclude, JsonPropertyName("acknowledged")]
37+
public bool Acknowledged { get; init; }
38+
}

0 commit comments

Comments
 (0)