Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 572feb4

Browse files
github-actions[bot]flobernd
andauthored
Regenerate client using the latest specification (#8319) (#8323)
Co-authored-by: Florian Bernd <git@flobernd.de>
1 parent 88dc423 commit 572feb4

File tree

97 files changed

+6017
-1185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6017
-1185
lines changed

‎src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ internal static class ApiUrlLookup
9191
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
9292
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
9393
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
94+
internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" });
9495
internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" });
9596
internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" });
9697
internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
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+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 GetGeoipDatabaseResponse : ElasticsearchResponse
30+
{
31+
[JsonInclude, JsonPropertyName("databases")]
32+
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationMetadata> Databases { get; init; }
33+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /