Skip to content

Commit fc9c994

Browse files
Add various APIs (#6322) (#6323)
Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
1 parent 06a6a90 commit fc9c994

23 files changed

+748
-1230
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ internal static class ApiUrlsLookups
117117
internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "/_index_template", "/_index_template/{name}" });
118118
internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "/_mapping", "/{index}/_mapping" });
119119
internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "/_data_stream/_migrate/{name}" });
120-
internal static ApiUrls IndexManagementModifyDataStream = new ApiUrls(new[] { "/_data_stream/_modify" });
121120
internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "/{index}/_open" });
122121
internal static ApiUrls IndexManagementPromoteDataStream = new ApiUrls(new[] { "/_data_stream/_promote/{name}" });
123122
internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "/{index}/_alias/{name}" });
@@ -139,7 +138,6 @@ internal static class ApiUrlsLookups
139138
internal static ApiUrls IndexManagementSplit = new ApiUrls(new[] { "/{index}/_split/{target}" });
140139
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "/_stats", "/_stats/{metric}", "/{index}/_stats", "/{index}/_stats/{metric}" });
141140
internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "/_template", "/_template/{name}" });
142-
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "/_aliases" });
143141
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "/_validate/query", "/{index}/_validate/query" });
144142
internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "/{index}/_doc/{id}", "/{index}/_doc" });
145143
internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "/" });
@@ -157,6 +155,9 @@ internal static class ApiUrlsLookups
157155
internal static ApiUrls LicensePost = new ApiUrls(new[] { "/_license" });
158156
internal static ApiUrls LicensePostStartBasic = new ApiUrls(new[] { "/_license/start_basic" });
159157
internal static ApiUrls LicensePostStartTrial = new ApiUrls(new[] { "/_license/start_trial" });
158+
internal static ApiUrls LogstashDeletePipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" });
159+
internal static ApiUrls LogstashPutPipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" });
160+
internal static ApiUrls MigrationDeprecations = new ApiUrls(new[] { "/_migration/deprecations", "/{index}/_migration/deprecations" });
160161
internal static ApiUrls NodesHotThreads = new ApiUrls(new[] { "/_nodes/hot_threads", "/_nodes/{node_id}/hot_threads" });
161162
internal static ApiUrls NodesInfo = new ApiUrls(new[] { "/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}" });
162163
internal static ApiUrls NodesReloadSecureSettings = new ApiUrls(new[] { "/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings" });
@@ -202,6 +203,7 @@ internal static class ApiUrlsLookups
202203
internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "/_sql/async/{id}" });
203204
internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "/_sql/async/status/{id}" });
204205
internal static ApiUrls SqlQuery = new ApiUrls(new[] { "/_sql" });
206+
internal static ApiUrls SecurityCertificates = new ApiUrls(new[] { "/_ssl/certificates" });
205207
internal static ApiUrls TasksGet = new ApiUrls(new[] { "/_tasks/{task_id}" });
206208
internal static ApiUrls TasksCancel = new ApiUrls(new[] { "/_tasks/_cancel", "/_tasks/{task_id}/_cancel" });
207209
internal static ApiUrls TasksList = new ApiUrls(new[] { "/_tasks" });

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs

Lines changed: 0 additions & 85 deletions
This file was deleted.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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.Logstash
27+
{
28+
public class LogstashDeletePipelineRequestParameters : RequestParameters<LogstashDeletePipelineRequestParameters>
29+
{
30+
}
31+
32+
public partial class LogstashDeletePipelineRequest : PlainRequestBase<LogstashDeletePipelineRequestParameters>
33+
{
34+
public LogstashDeletePipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
35+
{
36+
}
37+
38+
internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline;
39+
protected override HttpMethod HttpMethod => HttpMethod.DELETE;
40+
protected override bool SupportsBody => false;
41+
}
42+
43+
public sealed partial class LogstashDeletePipelineRequestDescriptor<TDocument> : RequestDescriptorBase<LogstashDeletePipelineRequestDescriptor<TDocument>, LogstashDeletePipelineRequestParameters>
44+
{
45+
internal LogstashDeletePipelineRequestDescriptor(Action<LogstashDeletePipelineRequestDescriptor<TDocument>> configure) => configure.Invoke(this);
46+
public LogstashDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
47+
{
48+
}
49+
50+
internal LogstashDeletePipelineRequestDescriptor()
51+
{
52+
}
53+
54+
internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline;
55+
protected override HttpMethod HttpMethod => HttpMethod.DELETE;
56+
protected override bool SupportsBody => false;
57+
public LogstashDeletePipelineRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Id id)
58+
{
59+
RouteValues.Required("id", id);
60+
return Self;
61+
}
62+
63+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
64+
{
65+
}
66+
}
67+
68+
public sealed partial class LogstashDeletePipelineRequestDescriptor : RequestDescriptorBase<LogstashDeletePipelineRequestDescriptor, LogstashDeletePipelineRequestParameters>
69+
{
70+
internal LogstashDeletePipelineRequestDescriptor(Action<LogstashDeletePipelineRequestDescriptor> configure) => configure.Invoke(this);
71+
public LogstashDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
72+
{
73+
}
74+
75+
internal LogstashDeletePipelineRequestDescriptor()
76+
{
77+
}
78+
79+
internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline;
80+
protected override HttpMethod HttpMethod => HttpMethod.DELETE;
81+
protected override bool SupportsBody => false;
82+
public LogstashDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id)
83+
{
84+
RouteValues.Required("id", id);
85+
return Self;
86+
}
87+
88+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
89+
{
90+
}
91+
}
92+
}
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
using System.Text.Json.Serialization;
2121

2222
#nullable restore
23-
namespace Elastic.Clients.Elasticsearch.IndexManagement
23+
namespace Elastic.Clients.Elasticsearch.Logstash
2424
{
25-
public partial class UpdateAliasesResponse : ElasticsearchResponseBase
25+
public partial class LogstashDeletePipelineResponse : ElasticsearchResponseBase
2626
{
27-
[JsonInclude]
28-
[JsonPropertyName("acknowledged")]
29-
public bool Acknowledged { get; init; }
3027
}
3128
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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.Logstash
27+
{
28+
public class LogstashPutPipelineRequestParameters : RequestParameters<LogstashPutPipelineRequestParameters>
29+
{
30+
}
31+
32+
public partial class LogstashPutPipelineRequest : PlainRequestBase<LogstashPutPipelineRequestParameters>
33+
{
34+
public LogstashPutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
35+
{
36+
}
37+
38+
internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline;
39+
protected override HttpMethod HttpMethod => HttpMethod.PUT;
40+
protected override bool SupportsBody => false;
41+
}
42+
43+
public sealed partial class LogstashPutPipelineRequestDescriptor<TDocument> : RequestDescriptorBase<LogstashPutPipelineRequestDescriptor<TDocument>, LogstashPutPipelineRequestParameters>
44+
{
45+
internal LogstashPutPipelineRequestDescriptor(Action<LogstashPutPipelineRequestDescriptor<TDocument>> configure) => configure.Invoke(this);
46+
public LogstashPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
47+
{
48+
}
49+
50+
internal LogstashPutPipelineRequestDescriptor()
51+
{
52+
}
53+
54+
internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline;
55+
protected override HttpMethod HttpMethod => HttpMethod.PUT;
56+
protected override bool SupportsBody => false;
57+
public LogstashPutPipelineRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Id id)
58+
{
59+
RouteValues.Required("id", id);
60+
return Self;
61+
}
62+
63+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
64+
{
65+
}
66+
}
67+
68+
public sealed partial class LogstashPutPipelineRequestDescriptor : RequestDescriptorBase<LogstashPutPipelineRequestDescriptor, LogstashPutPipelineRequestParameters>
69+
{
70+
internal LogstashPutPipelineRequestDescriptor(Action<LogstashPutPipelineRequestDescriptor> configure) => configure.Invoke(this);
71+
public LogstashPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
72+
{
73+
}
74+
75+
internal LogstashPutPipelineRequestDescriptor()
76+
{
77+
}
78+
79+
internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline;
80+
protected override HttpMethod HttpMethod => HttpMethod.PUT;
81+
protected override bool SupportsBody => false;
82+
public LogstashPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id)
83+
{
84+
RouteValues.Required("id", id);
85+
return Self;
86+
}
87+
88+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
89+
{
90+
}
91+
}
92+
}

0 commit comments

Comments
 (0)