Skip to content

Commit 6a73ab0

Browse files
Generate untagged variants (#8249) (#8250)
Co-authored-by: Florian Bernd <[email protected]>
1 parent a65b06b commit 6a73ab0

File tree

92 files changed

+9221
-1307
lines changed

Some content is hidden

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

92 files changed

+9221
-1307
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ internal static class ApiUrlLookup
208208
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
209209
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
210210
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" });
211+
internal static ApiUrls QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
212+
internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
213+
internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
214+
internal static ApiUrls QueryRulesGetRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
215+
internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" });
216+
internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
217+
internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
211218
internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" });
212219
internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" });
213220
internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" });

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public sealed partial class DeleteIndexTemplateRequestParameters : RequestParame
4343
}
4444

4545
/// <summary>
46-
/// <para>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
46+
/// <para>Delete an index template.<br/>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
4747
/// </summary>
4848
public sealed partial class DeleteIndexTemplateRequest : PlainRequest<DeleteIndexTemplateRequestParameters>
4949
{
@@ -73,7 +73,7 @@ public DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names
7373
}
7474

7575
/// <summary>
76-
/// <para>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
76+
/// <para>Delete an index template.<br/>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
7777
/// </summary>
7878
public sealed partial class DeleteIndexTemplateRequestDescriptor : RequestDescriptor<DeleteIndexTemplateRequestDescriptor, DeleteIndexTemplateRequestParameters>
7979
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public sealed partial class GetIndexTemplateRequestParameters : RequestParameter
5353
}
5454

5555
/// <summary>
56-
/// <para>Returns information about one or more index templates.</para>
56+
/// <para>Get index templates.<br/>Returns information about one or more index templates.</para>
5757
/// </summary>
5858
public sealed partial class GetIndexTemplateRequest : PlainRequest<GetIndexTemplateRequestParameters>
5959
{
@@ -99,7 +99,7 @@ public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? na
9999
}
100100

101101
/// <summary>
102-
/// <para>Returns information about one or more index templates.</para>
102+
/// <para>Get index templates.<br/>Returns information about one or more index templates.</para>
103103
/// </summary>
104104
public sealed partial class GetIndexTemplateRequestDescriptor : RequestDescriptor<GetIndexTemplateRequestDescriptor, GetIndexTemplateRequestParameters>
105105
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public sealed partial class PutIndexTemplateRequestParameters : RequestParameter
4848
}
4949

5050
/// <summary>
51-
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
51+
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
5252
/// </summary>
5353
public sealed partial class PutIndexTemplateRequest : PlainRequest<PutIndexTemplateRequestParameters>
5454
{
@@ -144,7 +144,7 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name nam
144144
}
145145

146146
/// <summary>
147-
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
147+
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
148148
/// </summary>
149149
public sealed partial class PutIndexTemplateRequestDescriptor<TDocument> : RequestDescriptor<PutIndexTemplateRequestDescriptor<TDocument>, PutIndexTemplateRequestParameters>
150150
{
@@ -401,7 +401,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
401401
}
402402

403403
/// <summary>
404-
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
404+
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
405405
/// </summary>
406406
public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor<PutIndexTemplateRequestDescriptor, PutIndexTemplateRequestParameters>
407407
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public sealed partial class PutTemplateRequestParameters : RequestParameters
4545
}
4646

4747
/// <summary>
48-
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
48+
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
4949
/// </summary>
5050
public sealed partial class PutTemplateRequest : PlainRequest<PutTemplateRequestParameters>
5151
{
@@ -116,7 +116,7 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) :
116116
}
117117

118118
/// <summary>
119-
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
119+
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
120120
/// </summary>
121121
public sealed partial class PutTemplateRequestDescriptor<TDocument> : RequestDescriptor<PutTemplateRequestDescriptor<TDocument>, PutTemplateRequestParameters>
122122
{
@@ -310,7 +310,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
310310
}
311311

312312
/// <summary>
313-
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
313+
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
314314
/// </summary>
315315
public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor<PutTemplateRequestDescriptor, PutTemplateRequestParameters>
316316
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public sealed partial class SimulateIndexTemplateRequestParameters : RequestPara
4242
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
4343
}
4444

45+
/// <summary>
46+
/// <para>Simulate an index.<br/>Returns the index configuration that would be applied to the specified index from an existing index template.</para>
47+
/// </summary>
4548
public sealed partial class SimulateIndexTemplateRequest : PlainRequest<SimulateIndexTemplateRequestParameters>
4649
{
4750
public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name))
@@ -69,6 +72,9 @@ public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Nam
6972
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
7073
}
7174

75+
/// <summary>
76+
/// <para>Simulate an index.<br/>Returns the index configuration that would be applied to the specified index from an existing index template.</para>
77+
/// </summary>
7278
public sealed partial class SimulateIndexTemplateRequestDescriptor : RequestDescriptor<SimulateIndexTemplateRequestDescriptor, SimulateIndexTemplateRequestParameters>
7379
{
7480
internal SimulateIndexTemplateRequestDescriptor(Action<SimulateIndexTemplateRequestDescriptor> configure) => configure.Invoke(this);

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public sealed partial class SimulateTemplateRequestParameters : RequestParameter
4848
}
4949

5050
/// <summary>
51-
/// <para>Returns the index configuration that would be applied by a particular index template.</para>
51+
/// <para>Simulate an index template.<br/>Returns the index configuration that would be applied by a particular index template.</para>
5252
/// </summary>
5353
public sealed partial class SimulateTemplateRequest : PlainRequest<SimulateTemplateRequestParameters>
5454
{
@@ -148,7 +148,7 @@ public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? na
148148
}
149149

150150
/// <summary>
151-
/// <para>Returns the index configuration that would be applied by a particular index template.</para>
151+
/// <para>Simulate an index template.<br/>Returns the index configuration that would be applied by a particular index template.</para>
152152
/// </summary>
153153
public sealed partial class SimulateTemplateRequestDescriptor<TDocument> : RequestDescriptor<SimulateTemplateRequestDescriptor<TDocument>, SimulateTemplateRequestParameters>
154154
{
@@ -409,7 +409,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
409409
}
410410

411411
/// <summary>
412-
/// <para>Returns the index configuration that would be applied by a particular index template.</para>
412+
/// <para>Simulate an index template.<br/>Returns the index configuration that would be applied by a particular index template.</para>
413413
/// </summary>
414414
public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor<SimulateTemplateRequestDescriptor, SimulateTemplateRequestParameters>
415415
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.QueryRules;
31+
32+
public sealed partial class DeleteRuleRequestParameters : RequestParameters
33+
{
34+
}
35+
36+
/// <summary>
37+
/// <para>Deletes a query rule within a query ruleset.</para>
38+
/// </summary>
39+
public sealed partial class DeleteRuleRequest : PlainRequest<DeleteRuleRequestParameters>
40+
{
41+
public DeleteRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
42+
{
43+
}
44+
45+
internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule;
46+
47+
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
48+
49+
internal override bool SupportsBody => false;
50+
51+
internal override string OperationName => "query_rules.delete_rule";
52+
}
53+
54+
/// <summary>
55+
/// <para>Deletes a query rule within a query ruleset.</para>
56+
/// </summary>
57+
public sealed partial class DeleteRuleRequestDescriptor : RequestDescriptor<DeleteRuleRequestDescriptor, DeleteRuleRequestParameters>
58+
{
59+
internal DeleteRuleRequestDescriptor(Action<DeleteRuleRequestDescriptor> configure) => configure.Invoke(this);
60+
61+
public DeleteRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
62+
{
63+
}
64+
65+
internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule;
66+
67+
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
68+
69+
internal override bool SupportsBody => false;
70+
71+
internal override string OperationName => "query_rules.delete_rule";
72+
73+
public DeleteRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId)
74+
{
75+
RouteValues.Required("rule_id", ruleId);
76+
return Self;
77+
}
78+
79+
public DeleteRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
80+
{
81+
RouteValues.Required("ruleset_id", rulesetId);
82+
return Self;
83+
}
84+
85+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
86+
{
87+
}
88+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.QueryRules;
28+
29+
public sealed partial class DeleteRuleResponse : ElasticsearchResponse
30+
{
31+
/// <summary>
32+
/// <para>For a successful response, this value is always true. On failure, an exception is returned instead.</para>
33+
/// </summary>
34+
[JsonInclude, JsonPropertyName("acknowledged")]
35+
public bool Acknowledged { get; init; }
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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.QueryRules;
31+
32+
public sealed partial class DeleteRulesetRequestParameters : RequestParameters
33+
{
34+
}
35+
36+
/// <summary>
37+
/// <para>Deletes a query ruleset.</para>
38+
/// </summary>
39+
public sealed partial class DeleteRulesetRequest : PlainRequest<DeleteRulesetRequestParameters>
40+
{
41+
public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
42+
{
43+
}
44+
45+
internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset;
46+
47+
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
48+
49+
internal override bool SupportsBody => false;
50+
51+
internal override string OperationName => "query_rules.delete_ruleset";
52+
}
53+
54+
/// <summary>
55+
/// <para>Deletes a query ruleset.</para>
56+
/// </summary>
57+
public sealed partial class DeleteRulesetRequestDescriptor : RequestDescriptor<DeleteRulesetRequestDescriptor, DeleteRulesetRequestParameters>
58+
{
59+
internal DeleteRulesetRequestDescriptor(Action<DeleteRulesetRequestDescriptor> configure) => configure.Invoke(this);
60+
61+
public DeleteRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
62+
{
63+
}
64+
65+
internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset;
66+
67+
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
68+
69+
internal override bool SupportsBody => false;
70+
71+
internal override string OperationName => "query_rules.delete_ruleset";
72+
73+
public DeleteRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
74+
{
75+
RouteValues.Required("ruleset_id", rulesetId);
76+
return Self;
77+
}
78+
79+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
80+
{
81+
}
82+
}

0 commit comments

Comments
 (0)