diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
index 5aaa3c540a6..64589ab7ff2 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
@@ -208,6 +208,13 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" });
+ internal static ApiUrls QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
+ internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
+ internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
+ internal static ApiUrls QueryRulesGetRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
+ internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" });
+ internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
+ internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" });
internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" });
internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" });
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs
index 6f6e42ad21b..80f171d1634 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs
@@ -43,7 +43,7 @@ public sealed partial class DeleteIndexTemplateRequestParameters : RequestParame
}
///
-/// The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
+/// Delete an index template.
The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
///
public sealed partial class DeleteIndexTemplateRequest : PlainRequest
{
@@ -73,7 +73,7 @@ public DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names
}
///
-/// The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
+/// Delete an index template.
The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
///
public sealed partial class DeleteIndexTemplateRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs
index b72b10a6b53..d30ca99d99a 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs
@@ -53,7 +53,7 @@ public sealed partial class GetIndexTemplateRequestParameters : RequestParameter
}
///
-/// Returns information about one or more index templates.
+/// Get index templates.
Returns information about one or more index templates.
///
public sealed partial class GetIndexTemplateRequest : PlainRequest
{
@@ -99,7 +99,7 @@ public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? na
}
///
-/// Returns information about one or more index templates.
+/// Get index templates.
Returns information about one or more index templates.
///
public sealed partial class GetIndexTemplateRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs
index 50e8b9d90b3..5382446ebe4 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs
@@ -48,7 +48,7 @@ public sealed partial class PutIndexTemplateRequestParameters : RequestParameter
}
///
-/// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+/// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
///
public sealed partial class PutIndexTemplateRequest : PlainRequest
{
@@ -144,7 +144,7 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name nam
}
///
-/// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+/// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
///
public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor, PutIndexTemplateRequestParameters>
{
@@ -401,7 +401,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+/// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
///
public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs
index 9c03c96df9f..eb6c337cfb0 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs
@@ -45,7 +45,7 @@ public sealed partial class PutTemplateRequestParameters : RequestParameters
}
///
-/// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+/// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
///
public sealed partial class PutTemplateRequest : PlainRequest
{
@@ -116,7 +116,7 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) :
}
///
-/// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+/// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
///
public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor, PutTemplateRequestParameters>
{
@@ -310,7 +310,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+/// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
///
public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs
index 96bec2b3d3d..671fac8b7f5 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs
@@ -42,6 +42,9 @@ public sealed partial class SimulateIndexTemplateRequestParameters : RequestPara
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
}
+///
+/// Simulate an index.
Returns the index configuration that would be applied to the specified index from an existing index template.
+///
public sealed partial class SimulateIndexTemplateRequest : PlainRequest
{
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
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
}
+///
+/// Simulate an index.
Returns the index configuration that would be applied to the specified index from an existing index template.
+///
public sealed partial class SimulateIndexTemplateRequestDescriptor : RequestDescriptor
{
internal SimulateIndexTemplateRequestDescriptor(Action configure) => configure.Invoke(this);
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs
index ed54b91e737..149b96a6610 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs
@@ -48,7 +48,7 @@ public sealed partial class SimulateTemplateRequestParameters : RequestParameter
}
///
-/// Returns the index configuration that would be applied by a particular index template.
+/// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
///
public sealed partial class SimulateTemplateRequest : PlainRequest
{
@@ -148,7 +148,7 @@ public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? na
}
///
-/// Returns the index configuration that would be applied by a particular index template.
+/// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
///
public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor, SimulateTemplateRequestParameters>
{
@@ -409,7 +409,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Returns the index configuration that would be applied by a particular index template.
+/// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
///
public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs
new file mode 100644
index 00000000000..54b45ec3bc6
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs
@@ -0,0 +1,88 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class DeleteRuleRequestParameters : RequestParameters
+{
+}
+
+///
+/// Deletes a query rule within a query ruleset.
+///
+public sealed partial class DeleteRuleRequest : PlainRequest
+{
+ 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))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.delete_rule";
+}
+
+///
+/// Deletes a query rule within a query ruleset.
+///
+public sealed partial class DeleteRuleRequestDescriptor : RequestDescriptor
+{
+ internal DeleteRuleRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ 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))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.delete_rule";
+
+ public DeleteRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId)
+ {
+ RouteValues.Required("rule_id", ruleId);
+ return Self;
+ }
+
+ public DeleteRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
+ {
+ RouteValues.Required("ruleset_id", rulesetId);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs
new file mode 100644
index 00000000000..0dfb148a64b
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs
@@ -0,0 +1,36 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class DeleteRuleResponse : ElasticsearchResponse
+{
+ ///
+ /// For a successful response, this value is always true. On failure, an exception is returned instead.
+ ///
+ [JsonInclude, JsonPropertyName("acknowledged")]
+ public bool Acknowledged { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs
new file mode 100644
index 00000000000..324be39c977
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs
@@ -0,0 +1,82 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class DeleteRulesetRequestParameters : RequestParameters
+{
+}
+
+///
+/// Deletes a query ruleset.
+///
+public sealed partial class DeleteRulesetRequest : PlainRequest
+{
+ public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.delete_ruleset";
+}
+
+///
+/// Deletes a query ruleset.
+///
+public sealed partial class DeleteRulesetRequestDescriptor : RequestDescriptor
+{
+ internal DeleteRulesetRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public DeleteRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.delete_ruleset";
+
+ public DeleteRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
+ {
+ RouteValues.Required("ruleset_id", rulesetId);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs
new file mode 100644
index 00000000000..4508411c472
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs
@@ -0,0 +1,36 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class DeleteRulesetResponse : ElasticsearchResponse
+{
+ ///
+ /// For a successful response, this value is always true. On failure, an exception is returned instead.
+ ///
+ [JsonInclude, JsonPropertyName("acknowledged")]
+ public bool Acknowledged { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs
new file mode 100644
index 00000000000..94e2620eac7
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs
@@ -0,0 +1,88 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class GetRuleRequestParameters : RequestParameters
+{
+}
+
+///
+/// Returns the details about a query rule within a query ruleset
+///
+public sealed partial class GetRuleRequest : PlainRequest
+{
+ public GetRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRule;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.get_rule";
+}
+
+///
+/// Returns the details about a query rule within a query ruleset
+///
+public sealed partial class GetRuleRequestDescriptor : RequestDescriptor
+{
+ internal GetRuleRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public GetRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRule;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.get_rule";
+
+ public GetRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId)
+ {
+ RouteValues.Required("rule_id", ruleId);
+ return Self;
+ }
+
+ public GetRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
+ {
+ RouteValues.Required("ruleset_id", rulesetId);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs
new file mode 100644
index 00000000000..63d2fc47f3f
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs
@@ -0,0 +1,39 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class GetRuleResponse : ElasticsearchResponse
+{
+ [JsonInclude, JsonPropertyName("actions")]
+ public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; init; }
+ [JsonInclude, JsonPropertyName("criteria")]
+ public IReadOnlyCollection Criteria { get; init; }
+ [JsonInclude, JsonPropertyName("rule_id")]
+ public string RuleId { get; init; }
+ [JsonInclude, JsonPropertyName("type")]
+ public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType Type { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs
new file mode 100644
index 00000000000..4269db61e68
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs
@@ -0,0 +1,82 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class GetRulesetRequestParameters : RequestParameters
+{
+}
+
+///
+/// Returns the details about a query ruleset
+///
+public sealed partial class GetRulesetRequest : PlainRequest
+{
+ public GetRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRuleset;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.get_ruleset";
+}
+
+///
+/// Returns the details about a query ruleset
+///
+public sealed partial class GetRulesetRequestDescriptor : RequestDescriptor
+{
+ internal GetRulesetRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public GetRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRuleset;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.get_ruleset";
+
+ public GetRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
+ {
+ RouteValues.Required("ruleset_id", rulesetId);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs
similarity index 68%
rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RangeQuery.g.cs
rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs
index 7efbdcec56c..9fb90479f2d 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RangeQuery.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs
@@ -17,26 +17,26 @@
#nullable restore
-using Elastic.Clients.Elasticsearch.Serverless.Core;
using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
-using Elastic.Transport;
+using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Linq.Expressions;
-using System.Text.Json;
using System.Text.Json.Serialization;
-namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl;
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
-public sealed partial class RangeQuery : Union
+public sealed partial class GetRulesetResponse : ElasticsearchResponse
{
- public RangeQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery Date) : base(Date)
- {
- }
+ ///
+ /// Rules associated with the query ruleset
+ ///
+ [JsonInclude, JsonPropertyName("rules")]
+ public IReadOnlyCollection Rules { get; init; }
- public RangeQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery Number) : base(Number)
- {
- }
+ ///
+ /// Query Ruleset unique identifier
+ ///
+ [JsonInclude, JsonPropertyName("ruleset_id")]
+ public string RulesetId { get; init; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs
new file mode 100644
index 00000000000..23d37ac752e
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs
@@ -0,0 +1,96 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class ListRulesetsRequestParameters : RequestParameters
+{
+ ///
+ /// Starting offset (default: 0)
+ ///
+ public int? From { get => Q("from"); set => Q("from", value); }
+
+ ///
+ /// specifies a max number of results to get
+ ///
+ public int? Size { get => Q("size"); set => Q("size", value); }
+}
+
+///
+/// Returns summarized information about existing query rulesets.
+///
+public sealed partial class ListRulesetsRequest : PlainRequest
+{
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesListRulesets;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.list_rulesets";
+
+ ///
+ /// Starting offset (default: 0)
+ ///
+ [JsonIgnore]
+ public int? From { get => Q("from"); set => Q("from", value); }
+
+ ///
+ /// specifies a max number of results to get
+ ///
+ [JsonIgnore]
+ public int? Size { get => Q("size"); set => Q("size", value); }
+}
+
+///
+/// Returns summarized information about existing query rulesets.
+///
+public sealed partial class ListRulesetsRequestDescriptor : RequestDescriptor
+{
+ internal ListRulesetsRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public ListRulesetsRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesListRulesets;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "query_rules.list_rulesets";
+
+ public ListRulesetsRequestDescriptor From(int? from) => Qs("from", from);
+ public ListRulesetsRequestDescriptor Size(int? size) => Qs("size", size);
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs
new file mode 100644
index 00000000000..f318fa1003c
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs
@@ -0,0 +1,35 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class ListRulesetsResponse : ElasticsearchResponse
+{
+ [JsonInclude, JsonPropertyName("count")]
+ public long Count { get; init; }
+ [JsonInclude, JsonPropertyName("results")]
+ public IReadOnlyCollection Results { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs
new file mode 100644
index 00000000000..89f9792991b
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs
@@ -0,0 +1,221 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class PutRuleRequestParameters : RequestParameters
+{
+}
+
+///
+/// Creates or updates a query rule within a query ruleset.
+///
+public sealed partial class PutRuleRequest : PlainRequest
+{
+ public PutRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRule;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.PUT;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "query_rules.put_rule";
+
+ [JsonInclude, JsonPropertyName("actions")]
+ public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; set; }
+ [JsonInclude, JsonPropertyName("criteria")]
+ public ICollection Criteria { get; set; }
+ [JsonInclude, JsonPropertyName("type")]
+ public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType Type { get; set; }
+}
+
+///
+/// Creates or updates a query rule within a query ruleset.
+///
+public sealed partial class PutRuleRequestDescriptor : RequestDescriptor
+{
+ internal PutRuleRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public PutRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRule;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.PUT;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "query_rules.put_rule";
+
+ public PutRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId)
+ {
+ RouteValues.Required("rule_id", ruleId);
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
+ {
+ RouteValues.Required("ruleset_id", rulesetId);
+ return Self;
+ }
+
+ private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions ActionsValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor ActionsDescriptor { get; set; }
+ private Action ActionsDescriptorAction { get; set; }
+ private ICollection CriteriaValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor CriteriaDescriptor { get; set; }
+ private Action CriteriaDescriptorAction { get; set; }
+ private Action[] CriteriaDescriptorActions { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType TypeValue { get; set; }
+
+ public PutRuleRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions actions)
+ {
+ ActionsDescriptor = null;
+ ActionsDescriptorAction = null;
+ ActionsValue = actions;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor descriptor)
+ {
+ ActionsValue = null;
+ ActionsDescriptorAction = null;
+ ActionsDescriptor = descriptor;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Actions(Action configure)
+ {
+ ActionsValue = null;
+ ActionsDescriptor = null;
+ ActionsDescriptorAction = configure;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Criteria(ICollection criteria)
+ {
+ CriteriaDescriptor = null;
+ CriteriaDescriptorAction = null;
+ CriteriaDescriptorActions = null;
+ CriteriaValue = criteria;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Criteria(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor descriptor)
+ {
+ CriteriaValue = null;
+ CriteriaDescriptorAction = null;
+ CriteriaDescriptorActions = null;
+ CriteriaDescriptor = descriptor;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Criteria(Action configure)
+ {
+ CriteriaValue = null;
+ CriteriaDescriptor = null;
+ CriteriaDescriptorActions = null;
+ CriteriaDescriptorAction = configure;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Criteria(params Action[] configure)
+ {
+ CriteriaValue = null;
+ CriteriaDescriptor = null;
+ CriteriaDescriptorAction = null;
+ CriteriaDescriptorActions = configure;
+ return Self;
+ }
+
+ public PutRuleRequestDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType type)
+ {
+ TypeValue = type;
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ writer.WriteStartObject();
+ if (ActionsDescriptor is not null)
+ {
+ writer.WritePropertyName("actions");
+ JsonSerializer.Serialize(writer, ActionsDescriptor, options);
+ }
+ else if (ActionsDescriptorAction is not null)
+ {
+ writer.WritePropertyName("actions");
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor(ActionsDescriptorAction), options);
+ }
+ else
+ {
+ writer.WritePropertyName("actions");
+ JsonSerializer.Serialize(writer, ActionsValue, options);
+ }
+
+ if (CriteriaDescriptor is not null)
+ {
+ writer.WritePropertyName("criteria");
+ writer.WriteStartArray();
+ JsonSerializer.Serialize(writer, CriteriaDescriptor, options);
+ writer.WriteEndArray();
+ }
+ else if (CriteriaDescriptorAction is not null)
+ {
+ writer.WritePropertyName("criteria");
+ writer.WriteStartArray();
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor(CriteriaDescriptorAction), options);
+ writer.WriteEndArray();
+ }
+ else if (CriteriaDescriptorActions is not null)
+ {
+ writer.WritePropertyName("criteria");
+ writer.WriteStartArray();
+ foreach (var action in CriteriaDescriptorActions)
+ {
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor(action), options);
+ }
+
+ writer.WriteEndArray();
+ }
+ else
+ {
+ writer.WritePropertyName("criteria");
+ JsonSerializer.Serialize(writer, CriteriaValue, options);
+ }
+
+ writer.WritePropertyName("type");
+ JsonSerializer.Serialize(writer, TypeValue, options);
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs
new file mode 100644
index 00000000000..aa8c2bc922d
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs
@@ -0,0 +1,33 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class PutRuleResponse : ElasticsearchResponse
+{
+ [JsonInclude, JsonPropertyName("result")]
+ public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs
new file mode 100644
index 00000000000..d82f1073db1
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs
@@ -0,0 +1,159 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class PutRulesetRequestParameters : RequestParameters
+{
+}
+
+///
+/// Creates or updates a query ruleset.
+///
+public sealed partial class PutRulesetRequest : PlainRequest
+{
+ public PutRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRuleset;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.PUT;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "query_rules.put_ruleset";
+
+ [JsonInclude, JsonPropertyName("rules")]
+ public ICollection Rules { get; set; }
+}
+
+///
+/// Creates or updates a query ruleset.
+///
+public sealed partial class PutRulesetRequestDescriptor : RequestDescriptor
+{
+ internal PutRulesetRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public PutRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRuleset;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.PUT;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "query_rules.put_ruleset";
+
+ public PutRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
+ {
+ RouteValues.Required("ruleset_id", rulesetId);
+ return Self;
+ }
+
+ private ICollection RulesValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor RulesDescriptor { get; set; }
+ private Action RulesDescriptorAction { get; set; }
+ private Action[] RulesDescriptorActions { get; set; }
+
+ public PutRulesetRequestDescriptor Rules(ICollection rules)
+ {
+ RulesDescriptor = null;
+ RulesDescriptorAction = null;
+ RulesDescriptorActions = null;
+ RulesValue = rules;
+ return Self;
+ }
+
+ public PutRulesetRequestDescriptor Rules(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor descriptor)
+ {
+ RulesValue = null;
+ RulesDescriptorAction = null;
+ RulesDescriptorActions = null;
+ RulesDescriptor = descriptor;
+ return Self;
+ }
+
+ public PutRulesetRequestDescriptor Rules(Action configure)
+ {
+ RulesValue = null;
+ RulesDescriptor = null;
+ RulesDescriptorActions = null;
+ RulesDescriptorAction = configure;
+ return Self;
+ }
+
+ public PutRulesetRequestDescriptor Rules(params Action[] configure)
+ {
+ RulesValue = null;
+ RulesDescriptor = null;
+ RulesDescriptorAction = null;
+ RulesDescriptorActions = configure;
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ writer.WriteStartObject();
+ if (RulesDescriptor is not null)
+ {
+ writer.WritePropertyName("rules");
+ writer.WriteStartArray();
+ JsonSerializer.Serialize(writer, RulesDescriptor, options);
+ writer.WriteEndArray();
+ }
+ else if (RulesDescriptorAction is not null)
+ {
+ writer.WritePropertyName("rules");
+ writer.WriteStartArray();
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor(RulesDescriptorAction), options);
+ writer.WriteEndArray();
+ }
+ else if (RulesDescriptorActions is not null)
+ {
+ writer.WritePropertyName("rules");
+ writer.WriteStartArray();
+ foreach (var action in RulesDescriptorActions)
+ {
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor(action), options);
+ }
+
+ writer.WriteEndArray();
+ }
+ else
+ {
+ writer.WritePropertyName("rules");
+ JsonSerializer.Serialize(writer, RulesValue, options);
+ }
+
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs
new file mode 100644
index 00000000000..3500ffe97f4
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs
@@ -0,0 +1,33 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public sealed partial class PutRulesetResponse : ElasticsearchResponse
+{
+ [JsonInclude, JsonPropertyName("result")]
+ public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs
index fcb5a2fb5e6..ee0ca420c9f 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs
@@ -873,7 +873,7 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie
}
///
- /// The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
+ /// Delete an index template.
The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequest request, CancellationToken cancellationToken = default)
@@ -883,7 +883,7 @@ public virtual Task DeleteIndexTemplateAsync(Delete
}
///
- /// The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
+ /// Delete an index template.
The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -893,7 +893,7 @@ public virtual Task DeleteIndexTemplateAsync(Delete
}
///
- /// The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
+ /// Delete an index template.
The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default)
@@ -904,7 +904,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti
}
///
- /// The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
+ /// Delete an index template.
The provided may contain multiple template names separated by a comma. If multiple template
names are specified then there is no wildcard support and the provided names should match completely with
existing templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default)
@@ -1853,7 +1853,7 @@ public virtual Task GetDataStreamAsync(Action
- /// Returns information about one or more index templates.
+ /// Get index templates.
Returns information about one or more index templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequest request, CancellationToken cancellationToken = default)
@@ -1863,7 +1863,7 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp
}
///
- /// Returns information about one or more index templates.
+ /// Get index templates.
Returns information about one or more index templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -1873,7 +1873,7 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp
}
///
- /// Returns information about one or more index templates.
+ /// Get index templates.
Returns information about one or more index templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default)
@@ -1884,7 +1884,7 @@ public virtual Task GetIndexTemplateAsync(Elastic.Clie
}
///
- /// Returns information about one or more index templates.
+ /// Get index templates.
Returns information about one or more index templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default)
@@ -1896,7 +1896,7 @@ public virtual Task GetIndexTemplateAsync(Elastic.Clie
}
///
- /// Returns information about one or more index templates.
+ /// Get index templates.
Returns information about one or more index templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetIndexTemplateAsync(CancellationToken cancellationToken = default)
@@ -1907,7 +1907,7 @@ public virtual Task GetIndexTemplateAsync(Cancellation
}
///
- /// Returns information about one or more index templates.
+ /// Get index templates.
Returns information about one or more index templates.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetIndexTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default)
@@ -2490,7 +2490,7 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequest request, CancellationToken cancellationToken = default)
@@ -2500,7 +2500,7 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -2510,7 +2510,7 @@ public virtual Task PutIndexTemplateAsync(P
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default)
@@ -2521,7 +2521,7 @@ public virtual Task PutIndexTemplateAsync(E
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default)
@@ -2533,7 +2533,7 @@ public virtual Task PutIndexTemplateAsync(E
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -2543,7 +2543,7 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default)
@@ -2554,7 +2554,7 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default)
@@ -2787,7 +2787,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(PutTemplateRequest request, CancellationToken cancellationToken = default)
@@ -2797,7 +2797,7 @@ public virtual Task PutTemplateAsync(PutTemplateRequest req
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -2807,7 +2807,7 @@ public virtual Task PutTemplateAsync(PutTemplate
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default)
@@ -2818,7 +2818,7 @@ public virtual Task PutTemplateAsync(Elastic.Cli
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default)
@@ -2830,7 +2830,7 @@ public virtual Task PutTemplateAsync(Elastic.Cli
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -2840,7 +2840,7 @@ public virtual Task PutTemplateAsync(PutTemplateRequestDesc
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default)
@@ -2851,7 +2851,7 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti
}
///
- /// Creates or updates an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
+ /// Create or update an index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default)
@@ -3394,6 +3394,7 @@ public virtual Task SegmentsAsync(Action
+ /// Simulate an index.
Returns the index configuration that would be applied to the specified index from an existing index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequest request, CancellationToken cancellationToken = default)
@@ -3403,6 +3404,7 @@ public virtual Task SimulateIndexTemplateAsync(Si
}
///
+ /// Simulate an index.
Returns the index configuration that would be applied to the specified index from an existing index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -3412,6 +3414,7 @@ public virtual Task SimulateIndexTemplateAsync(Si
}
///
+ /// Simulate an index.
Returns the index configuration that would be applied to the specified index from an existing index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default)
@@ -3422,6 +3425,7 @@ public virtual Task SimulateIndexTemplateAsync(El
}
///
+ /// Simulate an index.
Returns the index configuration that would be applied to the specified index from an existing index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default)
@@ -3433,7 +3437,7 @@ public virtual Task SimulateIndexTemplateAsync(El
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(SimulateTemplateRequest request, CancellationToken cancellationToken = default)
@@ -3443,7 +3447,7 @@ public virtual Task SimulateTemplateAsync(SimulateTemp
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -3453,7 +3457,7 @@ public virtual Task SimulateTemplateAsync(S
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default)
@@ -3464,7 +3468,7 @@ public virtual Task SimulateTemplateAsync(E
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action> configureRequest, CancellationToken cancellationToken = default)
@@ -3476,7 +3480,7 @@ public virtual Task SimulateTemplateAsync(E
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default)
@@ -3487,7 +3491,7 @@ public virtual Task SimulateTemplateAsync(C
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default)
@@ -3499,7 +3503,7 @@ public virtual Task SimulateTemplateAsync(A
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default)
@@ -3509,7 +3513,7 @@ public virtual Task SimulateTemplateAsync(SimulateTemp
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default)
@@ -3520,7 +3524,7 @@ public virtual Task SimulateTemplateAsync(Elastic.Clie
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default)
@@ -3532,7 +3536,7 @@ public virtual Task SimulateTemplateAsync(Elastic.Clie
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default)
@@ -3543,7 +3547,7 @@ public virtual Task SimulateTemplateAsync(Cancellation
}
///
- /// Returns the index configuration that would be applied by a particular index template.
+ /// Simulate an index template.
Returns the index configuration that would be applied by a particular index template.
/// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task SimulateTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default)
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs
new file mode 100644
index 00000000000..e44e5035f6f
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs
@@ -0,0 +1,340 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using System;
+using System.Collections.Generic;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+public partial class QueryRulesNamespacedClient : NamespacedClientProxy
+{
+ ///
+ /// Initializes a new instance of the class for mocking.
+ ///
+ protected QueryRulesNamespacedClient() : base()
+ {
+ }
+
+ internal QueryRulesNamespacedClient(ElasticsearchClient client) : base(client)
+ {
+ }
+
+ ///
+ /// Deletes a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRuleAsync(DeleteRuleRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRuleAsync(DeleteRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new DeleteRuleRequestDescriptor(rulesetId, ruleId);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new DeleteRuleRequestDescriptor(rulesetId, ruleId);
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRulesetAsync(DeleteRulesetRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRulesetAsync(DeleteRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new DeleteRulesetRequestDescriptor(rulesetId);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Deletes a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new DeleteRulesetRequestDescriptor(rulesetId);
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query rule within a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRuleAsync(GetRuleRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query rule within a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRuleAsync(GetRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query rule within a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new GetRuleRequestDescriptor(rulesetId, ruleId);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query rule within a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new GetRuleRequestDescriptor(rulesetId, ruleId);
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRulesetAsync(GetRulesetRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRulesetAsync(GetRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new GetRulesetRequestDescriptor(rulesetId);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns the details about a query ruleset
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new GetRulesetRequestDescriptor(rulesetId);
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns summarized information about existing query rulesets.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task ListRulesetsAsync(ListRulesetsRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Returns summarized information about existing query rulesets.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task ListRulesetsAsync(ListRulesetsRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns summarized information about existing query rulesets.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task ListRulesetsAsync(CancellationToken cancellationToken = default)
+ {
+ var descriptor = new ListRulesetsRequestDescriptor();
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Returns summarized information about existing query rulesets.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task ListRulesetsAsync(Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new ListRulesetsRequestDescriptor();
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRuleAsync(PutRuleRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRuleAsync(PutRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new PutRuleRequestDescriptor(rulesetId, ruleId);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query rule within a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new PutRuleRequestDescriptor(rulesetId, ruleId);
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRulesetAsync(PutRulesetRequest request, CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRulesetAsync(PutRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default)
+ {
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new PutRulesetRequestDescriptor(rulesetId);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+
+ ///
+ /// Creates or updates a query ruleset.
+ /// Learn more about this API in the Elasticsearch documentation.
+ ///
+ public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default)
+ {
+ var descriptor = new PutRulesetRequestDescriptor(rulesetId);
+ configureRequest?.Invoke(descriptor);
+ descriptor.BeforeRequest();
+ return DoRequestAsync(descriptor, cancellationToken);
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs
index a4d88416a60..fb87956944f 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs
@@ -27,6 +27,7 @@
using Elastic.Clients.Elasticsearch.Serverless.LicenseManagement;
using Elastic.Clients.Elasticsearch.Serverless.MachineLearning;
using Elastic.Clients.Elasticsearch.Serverless.Nodes;
+using Elastic.Clients.Elasticsearch.Serverless.QueryRules;
using Elastic.Clients.Elasticsearch.Serverless.Snapshot;
using Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement;
using Elastic.Clients.Elasticsearch.Serverless.Sql;
@@ -53,6 +54,7 @@ public partial class ElasticsearchClient
public virtual LicenseManagementNamespacedClient LicenseManagement { get; private set; }
public virtual MachineLearningNamespacedClient MachineLearning { get; private set; }
public virtual NodesNamespacedClient Nodes { get; private set; }
+ public virtual QueryRulesNamespacedClient QueryRules { get; private set; }
public virtual SnapshotNamespacedClient Snapshot { get; private set; }
public virtual SnapshotLifecycleManagementNamespacedClient SnapshotLifecycleManagement { get; private set; }
public virtual SqlNamespacedClient Sql { get; private set; }
@@ -73,6 +75,7 @@ private partial void SetupNamespaces()
LicenseManagement = new LicenseManagementNamespacedClient(this);
MachineLearning = new MachineLearningNamespacedClient(this);
Nodes = new NodesNamespacedClient(this);
+ QueryRules = new QueryRulesNamespacedClient(this);
Snapshot = new SnapshotNamespacedClient(this);
SnapshotLifecycleManagement = new SnapshotLifecycleManagementNamespacedClient(this);
Sql = new SqlNamespacedClient(this);
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs
index 79811752991..9a8d543b219 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs
@@ -86,6 +86,12 @@ public sealed partial class TermsAggregation
[JsonInclude, JsonPropertyName("script")]
public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; }
+ ///
+ /// Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the `min_doc_count`.
Terms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.
+ ///
+ [JsonInclude, JsonPropertyName("shard_min_doc_count")]
+ public long? ShardMinDocCount { get; set; }
+
///
/// The number of candidate terms produced by each shard.
By default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.
///
@@ -134,6 +140,7 @@ public TermsAggregationDescriptor() : base()
private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; }
private ICollection>? OrderValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; }
+ private long? ShardMinDocCountValue { get; set; }
private int? ShardSizeValue { get; set; }
private bool? ShowTermDocCountErrorValue { get; set; }
private int? SizeValue { get; set; }
@@ -253,6 +260,15 @@ public TermsAggregationDescriptor Script(Elastic.Clients.Elasticsearc
return Self;
}
+ ///
+ /// Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the `min_doc_count`.
Terms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.
+ ///
+ public TermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount)
+ {
+ ShardMinDocCountValue = shardMinDocCount;
+ return Self;
+ }
+
///
/// The number of candidate terms produced by each shard.
By default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.
///
@@ -364,6 +380,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
JsonSerializer.Serialize(writer, ScriptValue, options);
}
+ if (ShardMinDocCountValue.HasValue)
+ {
+ writer.WritePropertyName("shard_min_doc_count");
+ writer.WriteNumberValue(ShardMinDocCountValue.Value);
+ }
+
if (ShardSizeValue.HasValue)
{
writer.WritePropertyName("shard_size");
@@ -412,6 +434,7 @@ public TermsAggregationDescriptor() : base()
private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; }
private ICollection>? OrderValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; }
+ private long? ShardMinDocCountValue { get; set; }
private int? ShardSizeValue { get; set; }
private bool? ShowTermDocCountErrorValue { get; set; }
private int? SizeValue { get; set; }
@@ -531,6 +554,15 @@ public TermsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverles
return Self;
}
+ ///
+ /// Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the `min_doc_count`.
Terms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.
+ ///
+ public TermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount)
+ {
+ ShardMinDocCountValue = shardMinDocCount;
+ return Self;
+ }
+
///
/// The number of candidate terms produced by each shard.
By default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.
///
@@ -642,6 +674,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
JsonSerializer.Serialize(writer, ScriptValue, options);
}
+ if (ShardMinDocCountValue.HasValue)
+ {
+ writer.WritePropertyName("shard_min_doc_count");
+ writer.WriteNumberValue(ShardMinDocCountValue.Value);
+ }
+
if (ShardSizeValue.HasValue)
{
writer.WritePropertyName("shard_size");
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs
index 285be0f6877..0355cac3b29 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs
@@ -540,6 +540,74 @@ public override void Write(Utf8JsonWriter writer, GeoValidationMethod value, Jso
}
}
+[JsonConverter(typeof(MultiValueModeConverter))]
+public enum MultiValueMode
+{
+ ///
+ /// Distance is the sum of all distances.
+ ///
+ [EnumMember(Value = "sum")]
+ Sum,
+ ///
+ /// Distance is the minimum distance.
+ ///
+ [EnumMember(Value = "min")]
+ Min,
+ ///
+ /// Distance is the maximum distance.
+ ///
+ [EnumMember(Value = "max")]
+ Max,
+ ///
+ /// Distance is the average distance.
+ ///
+ [EnumMember(Value = "avg")]
+ Avg
+}
+
+internal sealed class MultiValueModeConverter : JsonConverter
+{
+ public override MultiValueMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "sum":
+ return MultiValueMode.Sum;
+ case "min":
+ return MultiValueMode.Min;
+ case "max":
+ return MultiValueMode.Max;
+ case "avg":
+ return MultiValueMode.Avg;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, MultiValueMode value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case MultiValueMode.Sum:
+ writer.WriteStringValue("sum");
+ return;
+ case MultiValueMode.Min:
+ writer.WriteStringValue("min");
+ return;
+ case MultiValueMode.Max:
+ writer.WriteStringValue("max");
+ return;
+ case MultiValueMode.Avg:
+ writer.WriteStringValue("avg");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
+
[JsonConverter(typeof(OperatorConverter))]
public enum Operator
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs
new file mode 100644
index 00000000000..6569028993b
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs
@@ -0,0 +1,169 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Core;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;
+
+[JsonConverter(typeof(QueryRuleCriteriaTypeConverter))]
+public enum QueryRuleCriteriaType
+{
+ [EnumMember(Value = "suffix")]
+ Suffix,
+ [EnumMember(Value = "prefix")]
+ Prefix,
+ [EnumMember(Value = "lte")]
+ Lte,
+ [EnumMember(Value = "lt")]
+ Lt,
+ [EnumMember(Value = "gte")]
+ Gte,
+ [EnumMember(Value = "gt")]
+ Gt,
+ [EnumMember(Value = "global")]
+ Global,
+ [EnumMember(Value = "exact_fuzzy")]
+ ExactFuzzy,
+ [EnumMember(Value = "exact")]
+ Exact,
+ [EnumMember(Value = "contains")]
+ Contains,
+ [EnumMember(Value = "always")]
+ Always
+}
+
+internal sealed class QueryRuleCriteriaTypeConverter : JsonConverter
+{
+ public override QueryRuleCriteriaType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "suffix":
+ return QueryRuleCriteriaType.Suffix;
+ case "prefix":
+ return QueryRuleCriteriaType.Prefix;
+ case "lte":
+ return QueryRuleCriteriaType.Lte;
+ case "lt":
+ return QueryRuleCriteriaType.Lt;
+ case "gte":
+ return QueryRuleCriteriaType.Gte;
+ case "gt":
+ return QueryRuleCriteriaType.Gt;
+ case "global":
+ return QueryRuleCriteriaType.Global;
+ case "exact_fuzzy":
+ return QueryRuleCriteriaType.ExactFuzzy;
+ case "exact":
+ return QueryRuleCriteriaType.Exact;
+ case "contains":
+ return QueryRuleCriteriaType.Contains;
+ case "always":
+ return QueryRuleCriteriaType.Always;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, QueryRuleCriteriaType value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case QueryRuleCriteriaType.Suffix:
+ writer.WriteStringValue("suffix");
+ return;
+ case QueryRuleCriteriaType.Prefix:
+ writer.WriteStringValue("prefix");
+ return;
+ case QueryRuleCriteriaType.Lte:
+ writer.WriteStringValue("lte");
+ return;
+ case QueryRuleCriteriaType.Lt:
+ writer.WriteStringValue("lt");
+ return;
+ case QueryRuleCriteriaType.Gte:
+ writer.WriteStringValue("gte");
+ return;
+ case QueryRuleCriteriaType.Gt:
+ writer.WriteStringValue("gt");
+ return;
+ case QueryRuleCriteriaType.Global:
+ writer.WriteStringValue("global");
+ return;
+ case QueryRuleCriteriaType.ExactFuzzy:
+ writer.WriteStringValue("exact_fuzzy");
+ return;
+ case QueryRuleCriteriaType.Exact:
+ writer.WriteStringValue("exact");
+ return;
+ case QueryRuleCriteriaType.Contains:
+ writer.WriteStringValue("contains");
+ return;
+ case QueryRuleCriteriaType.Always:
+ writer.WriteStringValue("always");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
+
+[JsonConverter(typeof(QueryRuleTypeConverter))]
+public enum QueryRuleType
+{
+ [EnumMember(Value = "pinned")]
+ Pinned
+}
+
+internal sealed class QueryRuleTypeConverter : JsonConverter
+{
+ public override QueryRuleType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "pinned":
+ return QueryRuleType.Pinned;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, QueryRuleType value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case QueryRuleType.Pinned:
+ writer.WriteStringValue("pinned");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs
index 3b26d70b295..a6974a18d28 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs
@@ -29,6 +29,12 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
public sealed partial class MappingLimitSettingsTotalFields
{
+ ///
+ ///