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 64589ab7ff2..9456e65f629 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs @@ -44,6 +44,7 @@ internal static class ApiUrlLookup internal static ApiUrls EqlGet = new ApiUrls(new[] { "_eql/search/{id}" }); internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" }); internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" }); + internal static ApiUrls EsqlQuery = new ApiUrls(new[] { "_query" }); internal static ApiUrls GraphExplore = new ApiUrls(new[] { "{index}/_graph/explore" }); internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "_analyze", "{index}/_analyze" }); internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "_cache/clear", "{index}/_cache/clear" }); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs index 599288109c8..505857eaf9a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs @@ -78,7 +78,7 @@ public sealed partial class BulkRequestParameters : RequestParameters } /// -/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+/// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequest : PlainRequest { @@ -154,7 +154,7 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : } /// -/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+/// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor, BulkRequestParameters> { @@ -200,7 +200,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+/// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoRequest.g.cs index 9210d1819d7..5b0d61c446b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class ClusterInfoRequestParameters : RequestParameters } /// -/// Returns different information about the cluster. +/// Get cluster info.
Returns basic information about the cluster.
///
public sealed partial class ClusterInfoRequest : PlainRequest { @@ -52,7 +52,7 @@ public ClusterInfoRequest(IReadOnlyCollection -/// Returns different information about the cluster. +/// Get cluster info.
Returns basic information about the cluster.
/// public sealed partial class ClusterInfoRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs index f8bf7e8bf8c..03baac488c0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class DeleteComponentTemplateRequestParameters : RequestPa } /// -/// Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+/// Delete component templates.
Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
///
public sealed partial class DeleteComponentTemplateRequest : PlainRequest { @@ -73,7 +73,7 @@ public DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.N } /// -/// Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+/// Delete component templates.
Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
///
public sealed partial class DeleteComponentTemplateRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs index 090b8874f29..f2b2db58bf3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class ExistsComponentTemplateRequestParameters : RequestPa } /// -/// Returns information about whether a particular component template exist +/// Check component templates.
Returns information about whether a particular component template exists.
///
public sealed partial class ExistsComponentTemplateRequest : PlainRequest { @@ -73,7 +73,7 @@ public ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.N } /// -/// Returns information about whether a particular component template exist +/// Check component templates.
Returns information about whether a particular component template exists.
///
public sealed partial class ExistsComponentTemplateRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs index b16be865e9a..1012b6d0fe0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs @@ -53,7 +53,7 @@ public sealed partial class GetComponentTemplateRequestParameters : RequestParam } /// -/// Retrieves information about component templates. +/// Get component templates.
Retrieves information about component templates.
///
public sealed partial class GetComponentTemplateRequest : PlainRequest { @@ -99,7 +99,7 @@ public GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name } /// -/// Retrieves information about component templates. +/// Get component templates.
Retrieves information about component templates.
///
public sealed partial class GetComponentTemplateRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs index 9af2ef31586..ff4bc7a9f89 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class PutComponentTemplateRequestParameters : RequestParam } /// -/// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+/// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -101,7 +101,7 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name } /// -/// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+/// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -235,7 +235,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+/// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs index ec2c0762f88..16c7d5db0f6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs @@ -68,7 +68,7 @@ public sealed partial class CreateRequestParameters : RequestParameters } /// -/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+/// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequest : PlainRequest, ISelfSerializable { @@ -135,7 +135,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op } /// -/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+/// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequestDescriptor : RequestDescriptor, CreateRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs index 05790bae6c2..4ac3e38419d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs @@ -173,7 +173,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters } /// -/// Deletes documents that match the specified query. +/// Delete documents.
Deletes documents that match the specified query.
///
public sealed partial class DeleteByQueryRequest : PlainRequest { @@ -377,7 +377,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind } /// -/// Deletes documents that match the specified query. +/// Delete documents.
Deletes documents that match the specified query.
///
public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor, DeleteByQueryRequestParameters> { @@ -551,7 +551,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes documents that match the specified query. +/// Delete documents.
Deletes documents that match the specified query.
///
public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs index 2e3c99dbf0a..43ed10a80c9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs @@ -73,7 +73,7 @@ public sealed partial class DeleteRequestParameters : RequestParameters } /// -/// Removes a JSON document from the specified index. +/// Delete a document.
Removes a JSON document from the specified index.
///
public partial class DeleteRequest : PlainRequest { @@ -139,7 +139,7 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E } /// -/// Removes a JSON document from the specified index. +/// Delete a document.
Removes a JSON document from the specified index.
///
public sealed partial class DeleteRequestDescriptor : RequestDescriptor, DeleteRequestParameters> { @@ -200,7 +200,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Removes a JSON document from the specified index. +/// Delete a document.
Removes a JSON document from the specified index.
///
public sealed partial class DeleteRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs index 394b0980a05..d10e1a4199e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class DeleteScriptRequestParameters : RequestParameters } /// -/// Deletes a stored script or search template. +/// Delete a script or search template.
Deletes a stored script or search template.
///
public sealed partial class DeleteScriptRequest : PlainRequest { @@ -73,7 +73,7 @@ public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : bas } /// -/// Deletes a stored script or search template. +/// Delete a script or search template.
Deletes a stored script or search template.
///
public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor, DeleteScriptRequestParameters> { @@ -106,7 +106,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes a stored script or search template. +/// Delete a script or search template.
Deletes a stored script or search template.
///
public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs index 40174816981..568ba5e4db9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class DeletePolicyRequestParameters : RequestParameters } /// -/// Deletes an existing enrich policy and its enrich index. +/// Delete an enrich policy.
Deletes an existing enrich policy and its enrich index.
///
public sealed partial class DeletePolicyRequest : PlainRequest { @@ -52,7 +52,7 @@ public DeletePolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : } /// -/// Deletes an existing enrich policy and its enrich index. +/// Delete an enrich policy.
Deletes an existing enrich policy and its enrich index.
///
public sealed partial class DeletePolicyRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs index 49d55b84b61..cc7061ea803 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class EnrichStatsRequestParameters : RequestParameters } /// -/// Returns enrich coordinator statistics and information about enrich policies that are currently executing. +/// Get enrich stats.
Returns enrich coordinator statistics and information about enrich policies that are currently executing.
///
public sealed partial class EnrichStatsRequest : PlainRequest { @@ -48,7 +48,7 @@ public sealed partial class EnrichStatsRequest : PlainRequest -/// Returns enrich coordinator statistics and information about enrich policies that are currently executing. +/// Get enrich stats.
Returns enrich coordinator statistics and information about enrich policies that are currently executing.
///
public sealed partial class EnrichStatsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyRequest.g.cs index 078caefe4d6..288ca6e771d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class GetPolicyRequestParameters : RequestParameters } /// -/// Returns information about an enrich policy. +/// Get an enrich policy.
Returns information about an enrich policy.
///
public sealed partial class GetPolicyRequest : PlainRequest { @@ -56,7 +56,7 @@ public GetPolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : } /// -/// Returns information about an enrich policy. +/// Get an enrich policy.
Returns information about an enrich policy.
///
public sealed partial class GetPolicyRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyRequest.g.cs index 8fb5b72a54c..ee573088708 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class PutPolicyRequestParameters : RequestParameters } /// -/// Creates an enrich policy. +/// Create an enrich policy.
Creates an enrich policy.
///
public sealed partial class PutPolicyRequest : PlainRequest { @@ -70,7 +70,7 @@ public PutPolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : ba } /// -/// Creates an enrich policy. +/// Create an enrich policy.
Creates an enrich policy.
///
public sealed partial class PutPolicyRequestDescriptor : RequestDescriptor, PutPolicyRequestParameters> { @@ -241,7 +241,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates an enrich policy. +/// Create an enrich policy.
Creates an enrich policy.
///
public sealed partial class PutPolicyRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs new file mode 100644 index 00000000000..96f064dcdcf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -0,0 +1,412 @@ +// 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.Esql; + +public sealed partial class EsqlQueryRequestParameters : RequestParameters +{ + /// + /// The character to use between values within a CSV row. Only valid for the CSV format. + /// + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?
Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns.
+ ///
+ public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } + + /// + /// A short version of the Accept header, e.g. json, yaml. + /// + public string? Format { get => Q("format"); set => Q("format", value); } +} + +/// +/// Executes an ES|QL request +/// +public sealed partial class EsqlQueryRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "esql.query"; + + /// + /// The character to use between values within a CSV row. Only valid for the CSV format. + /// + [JsonIgnore] + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?
Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns.
+ ///
+ [JsonIgnore] + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } + + /// + /// A short version of the Accept header, e.g. json, yaml. + /// + [JsonIgnore] + public string? Format { get => Q("format"); set => Q("format", value); } + + /// + /// By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results. + /// + [JsonInclude, JsonPropertyName("columnar")] + public bool? Columnar { get; set; } + + /// + /// Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on. + /// + [JsonInclude, JsonPropertyName("filter")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } + [JsonInclude, JsonPropertyName("locale")] + public string? Locale { get; set; } + + /// + /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. + /// + [JsonInclude, JsonPropertyName("params")] + public ICollection? Params { get; set; } + + /// + /// If provided and `true` the response will include an extra `profile` object
with information on how the query was executed. This information is for human debugging
and its format can change at any time but it can give some insight into the performance
of each part of the query.
+ ///
+ [JsonInclude, JsonPropertyName("profile")] + public bool? Profile { get; set; } + + /// + /// The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results. + /// + [JsonInclude, JsonPropertyName("query")] + public string Query { get; set; } +} + +/// +/// Executes an ES|QL request +/// +public sealed partial class EsqlQueryRequestDescriptor : RequestDescriptor, EsqlQueryRequestParameters> +{ + internal EsqlQueryRequestDescriptor(Action> configure) => configure.Invoke(this); + + public EsqlQueryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "esql.query"; + + public EsqlQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public EsqlQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + public EsqlQueryRequestDescriptor Format(string? format) => Qs("format", format); + + private bool? ColumnarValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private string? LocaleValue { get; set; } + private ICollection? ParamsValue { get; set; } + private bool? ProfileValue { get; set; } + private string QueryValue { get; set; } + + /// + /// By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results. + /// + public EsqlQueryRequestDescriptor Columnar(bool? columnar = true) + { + ColumnarValue = columnar; + return Self; + } + + /// + /// Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on. + /// + public EsqlQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public EsqlQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public EsqlQueryRequestDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + public EsqlQueryRequestDescriptor Locale(string? locale) + { + LocaleValue = locale; + return Self; + } + + /// + /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. + /// + public EsqlQueryRequestDescriptor Params(ICollection? value) + { + ParamsValue = value; + return Self; + } + + /// + /// If provided and `true` the response will include an extra `profile` object
with information on how the query was executed. This information is for human debugging
and its format can change at any time but it can give some insight into the performance
of each part of the query.
+ ///
+ public EsqlQueryRequestDescriptor Profile(bool? profile = true) + { + ProfileValue = profile; + return Self; + } + + /// + /// The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results. + /// + public EsqlQueryRequestDescriptor Query(string query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ColumnarValue.HasValue) + { + writer.WritePropertyName("columnar"); + writer.WriteBooleanValue(ColumnarValue.Value); + } + + if (FilterDescriptor is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterDescriptor, options); + } + else if (FilterDescriptorAction is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (!string.IsNullOrEmpty(LocaleValue)) + { + writer.WritePropertyName("locale"); + writer.WriteStringValue(LocaleValue); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (ProfileValue.HasValue) + { + writer.WritePropertyName("profile"); + writer.WriteBooleanValue(ProfileValue.Value); + } + + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + writer.WriteEndObject(); + } +} + +/// +/// Executes an ES|QL request +/// +public sealed partial class EsqlQueryRequestDescriptor : RequestDescriptor +{ + internal EsqlQueryRequestDescriptor(Action configure) => configure.Invoke(this); + + public EsqlQueryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "esql.query"; + + public EsqlQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public EsqlQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + public EsqlQueryRequestDescriptor Format(string? format) => Qs("format", format); + + private bool? ColumnarValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private string? LocaleValue { get; set; } + private ICollection? ParamsValue { get; set; } + private bool? ProfileValue { get; set; } + private string QueryValue { get; set; } + + /// + /// By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results. + /// + public EsqlQueryRequestDescriptor Columnar(bool? columnar = true) + { + ColumnarValue = columnar; + return Self; + } + + /// + /// Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on. + /// + public EsqlQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public EsqlQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public EsqlQueryRequestDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + public EsqlQueryRequestDescriptor Locale(string? locale) + { + LocaleValue = locale; + return Self; + } + + /// + /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. + /// + public EsqlQueryRequestDescriptor Params(ICollection? value) + { + ParamsValue = value; + return Self; + } + + /// + /// If provided and `true` the response will include an extra `profile` object
with information on how the query was executed. This information is for human debugging
and its format can change at any time but it can give some insight into the performance
of each part of the query.
+ ///
+ public EsqlQueryRequestDescriptor Profile(bool? profile = true) + { + ProfileValue = profile; + return Self; + } + + /// + /// The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results. + /// + public EsqlQueryRequestDescriptor Query(string query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ColumnarValue.HasValue) + { + writer.WritePropertyName("columnar"); + writer.WriteBooleanValue(ColumnarValue.Value); + } + + if (FilterDescriptor is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterDescriptor, options); + } + else if (FilterDescriptorAction is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (!string.IsNullOrEmpty(LocaleValue)) + { + writer.WritePropertyName("locale"); + writer.WriteStringValue(LocaleValue); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (ProfileValue.HasValue) + { + writer.WritePropertyName("profile"); + writer.WriteBooleanValue(ProfileValue.Value); + } + + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryResponse.g.cs new file mode 100644 index 00000000000..c872ff199a7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryResponse.g.cs @@ -0,0 +1,31 @@ +// 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.Esql; + +public sealed partial class EsqlQueryResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs index 2a9479251df..bf5938c0b8b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs @@ -83,7 +83,7 @@ public sealed partial class ExistsRequestParameters : RequestParameters } /// -/// Checks if a document in an index exists. +/// Check a document.
Checks if a specified document exists.
///
public sealed partial class ExistsRequest : PlainRequest { @@ -161,7 +161,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E } /// -/// Checks if a document in an index exists. +/// Check a document.
Checks if a specified document exists.
///
public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> { @@ -224,7 +224,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Checks if a document in an index exists. +/// Check a document.
Checks if a specified document exists.
///
public sealed partial class ExistsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs index 513485ab900..1ab11b6d071 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs @@ -78,7 +78,7 @@ public sealed partial class ExistsSourceRequestParameters : RequestParameters } /// -/// Checks if a document's `_source` is stored. +/// Check for a document source.
Checks if a document's `_source` is stored.
///
public sealed partial class ExistsSourceRequest : PlainRequest { @@ -150,7 +150,7 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName in } /// -/// Checks if a document's `_source` is stored. +/// Check for a document source.
Checks if a document's `_source` is stored.
///
public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor, ExistsSourceRequestParameters> { @@ -212,7 +212,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Checks if a document's `_source` is stored. +/// Check for a document source.
Checks if a document's `_source` is stored.
///
public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs index 2b67dee6913..e9f5ca5b2c9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs @@ -93,7 +93,7 @@ public sealed partial class ExplainRequestParameters : RequestParameters } /// -/// Returns information about why a specific document matches (or doesn’t match) a query. +/// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
///
public sealed partial class ExplainRequest : PlainRequest { @@ -189,7 +189,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, } /// -/// Returns information about why a specific document matches (or doesn’t match) a query. +/// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
///
public sealed partial class ExplainRequestDescriptor : RequestDescriptor, ExplainRequestParameters> { @@ -303,7 +303,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about why a specific document matches (or doesn’t match) a query. +/// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
///
public sealed partial class ExplainRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs index 230b7e3a22f..348c15507ef 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs @@ -83,7 +83,7 @@ public sealed partial class GetRequestParameters : RequestParameters } /// -/// Returns a document. +/// Get a document by its ID.
Retrieves the document with the specified ID from an index.
///
public sealed partial class GetRequest : PlainRequest { @@ -161,7 +161,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elas } /// -/// Returns a document. +/// Get a document by its ID.
Retrieves the document with the specified ID from an index.
///
public sealed partial class GetRequestDescriptor : RequestDescriptor, GetRequestParameters> { @@ -224,7 +224,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns a document. +/// Get a document by its ID.
Retrieves the document with the specified ID from an index.
///
public sealed partial class GetRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs index 96368540bb4..e55395d21b3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class GetScriptRequestParameters : RequestParameters } /// -/// Retrieves a stored script or search template. +/// Get a script or search template.
Retrieves a stored script or search template.
///
public sealed partial class GetScriptRequest : PlainRequest { @@ -62,7 +62,7 @@ public GetScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r } /// -/// Retrieves a stored script or search template. +/// Get a script or search template.
Retrieves a stored script or search template.
///
public sealed partial class GetScriptRequestDescriptor : RequestDescriptor, GetScriptRequestParameters> { @@ -94,7 +94,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Retrieves a stored script or search template. +/// Get a script or search template.
Retrieves a stored script or search template.
///
public sealed partial class GetScriptRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs index 7b3d473879a..279d55dcf45 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs @@ -79,7 +79,7 @@ public sealed partial class GetSourceRequestParameters : RequestParameters } /// -/// Returns the source of a document. +/// Get a document's source.
Returns the source of a document.
///
public sealed partial class GetSourceRequest : PlainRequest { @@ -153,7 +153,7 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index } /// -/// Returns the source of a document. +/// Get a document's source.
Returns the source of a document.
///
public sealed partial class GetSourceRequestDescriptor : RequestDescriptor, GetSourceRequestParameters> { @@ -216,7 +216,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns the source of a document. +/// Get a document's source.
Returns the source of a document.
///
public sealed partial class GetSourceRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs index 62e64cc5f39..607ed216a2e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class CreateDataStreamRequestParameters : RequestParameter } /// -/// Creates a data stream.
You must have a matching index template with data stream enabled.
+/// Create a data stream.
Creates a data stream.
You must have a matching index template with data stream enabled.
///
public sealed partial class CreateDataStreamRequest : PlainRequest { @@ -52,7 +52,7 @@ public CreateDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre } /// -/// Creates a data stream.
You must have a matching index template with data stream enabled.
+/// Create a data stream.
Creates a data stream.
You must have a matching index template with data stream enabled.
///
public sealed partial class CreateDataStreamRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs index c71e9c3cd8b..1de2243d839 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs @@ -48,7 +48,7 @@ public sealed partial class CreateIndexRequestParameters : RequestParameters } /// -/// Creates a new index. +/// Create an index.
Creates a new index.
///
public sealed partial class CreateIndexRequest : PlainRequest { @@ -102,7 +102,7 @@ public CreateIndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName ind } /// -/// Creates a new index. +/// Create an index.
Creates a new index.
///
public sealed partial class CreateIndexRequestDescriptor : RequestDescriptor, CreateIndexRequestParameters> { @@ -251,7 +251,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates a new index. +/// Create an index.
Creates a new index.
///
public sealed partial class CreateIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs index 975641dd419..008c844030b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class DataStreamsStatsRequestParameters : RequestParameter } /// -/// Retrieves statistics for one or more data streams. +/// Get data stream stats.
Retrieves statistics for one or more data streams.
///
public sealed partial class DataStreamsStatsRequest : PlainRequest { @@ -66,7 +66,7 @@ public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexNam } /// -/// Retrieves statistics for one or more data streams. +/// Get data stream stats.
Retrieves statistics for one or more data streams.
///
public sealed partial class DataStreamsStatsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs index b74dba7c136..d6fb2d6ea7f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class DeleteAliasRequestParameters : RequestParameters } /// -/// Removes a data stream or index from an alias. +/// Delete an alias.
Removes a data stream or index from an alias.
///
public sealed partial class DeleteAliasRequest : PlainRequest { @@ -73,7 +73,7 @@ public DeleteAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indic } /// -/// Removes a data stream or index from an alias. +/// Delete an alias.
Removes a data stream or index from an alias.
///
public sealed partial class DeleteAliasRequestDescriptor : RequestDescriptor, DeleteAliasRequestParameters> { @@ -116,7 +116,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Removes a data stream or index from an alias. +/// Delete an alias.
Removes a data stream or index from an alias.
///
public sealed partial class DeleteAliasRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs index 2e1f19a9a18..d5846d83d45 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -48,7 +48,7 @@ public sealed partial class DeleteDataLifecycleRequestParameters : RequestParame } /// -/// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle +/// Delete data stream lifecycles.
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
///
public sealed partial class DeleteDataLifecycleRequest : PlainRequest { @@ -84,7 +84,7 @@ public DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataS } /// -/// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle +/// Delete data stream lifecycles.
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
///
public sealed partial class DeleteDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs index b78767323b1..51a15edd8f7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class DeleteDataStreamRequestParameters : RequestParameter } /// -/// Deletes one or more data streams and their backing indices. +/// Delete data streams.
Deletes one or more data streams and their backing indices.
///
public sealed partial class DeleteDataStreamRequest : PlainRequest { @@ -62,7 +62,7 @@ public DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre } /// -/// Deletes one or more data streams and their backing indices. +/// Delete data streams.
Deletes one or more data streams and their backing indices.
///
public sealed partial class DeleteDataStreamRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index e9f664487e3..c5157858428 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -58,7 +58,7 @@ public sealed partial class DeleteIndexRequestParameters : RequestParameters } /// -/// Deletes one or more indices. +/// Delete indices.
Deletes one or more indices.
///
public sealed partial class DeleteIndexRequest : PlainRequest { @@ -106,7 +106,7 @@ public DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indic } /// -/// Deletes one or more indices. +/// Delete indices.
Deletes one or more indices.
///
public sealed partial class DeleteIndexRequestDescriptor : RequestDescriptor, DeleteIndexRequestParameters> { @@ -146,7 +146,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes one or more indices. +/// Delete indices.
Deletes one or more indices.
///
public sealed partial class DeleteIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 180db2d707b..f787c028cc2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -53,7 +53,7 @@ public sealed partial class ExistsAliasRequestParameters : RequestParameters } /// -/// Checks if an alias exists. +/// Check aliases.
Checks if one or more data stream or index aliases exist.
///
public sealed partial class ExistsAliasRequest : PlainRequest { @@ -99,7 +99,7 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indi } /// -/// Checks if an alias exists. +/// Check aliases.
Checks if one or more data stream or index aliases exist.
///
public sealed partial class ExistsAliasRequestDescriptor : RequestDescriptor, ExistsAliasRequestParameters> { @@ -144,7 +144,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Checks if an alias exists. +/// Check aliases.
Checks if one or more data stream or index aliases exist.
///
public sealed partial class ExistsAliasRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs index 61b7b9839f7..23bcd2aa688 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -63,7 +63,7 @@ public sealed partial class ExistsRequestParameters : RequestParameters } /// -/// Checks if a data stream, index, or alias exists. +/// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
///
public sealed partial class ExistsRequest : PlainRequest { @@ -117,7 +117,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : } /// -/// Checks if a data stream, index, or alias exists. +/// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
///
public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> { @@ -158,7 +158,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Checks if a data stream, index, or alias exists. +/// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
///
public sealed partial class ExistsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 08c0b19c681..ea3157d7aaa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class ExplainDataLifecycleRequestParameters : RequestParam } /// -/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. +/// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
///
public sealed partial class ExplainDataLifecycleRequest : PlainRequest { @@ -73,7 +73,7 @@ public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Indi } /// -/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. +/// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
///
public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor, ExplainDataLifecycleRequestParameters> { @@ -110,7 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. +/// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
///
public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 8dcc0896981..e23d3e2db03 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -53,7 +53,7 @@ public sealed partial class GetAliasRequestParameters : RequestParameters } /// -/// Retrieves information for one or more aliases. +/// Get aliases.
Retrieves information for one or more data stream or index aliases.
///
public sealed partial class GetAliasRequest : PlainRequest { @@ -107,7 +107,7 @@ public GetAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices } /// -/// Retrieves information for one or more aliases. +/// Get aliases.
Retrieves information for one or more data stream or index aliases.
///
public sealed partial class GetAliasRequestDescriptor : RequestDescriptor, GetAliasRequestParameters> { @@ -152,7 +152,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Retrieves information for one or more aliases. +/// Get aliases.
Retrieves information for one or more data stream or index aliases.
///
public sealed partial class GetAliasRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs index 2678c2d8b81..f65a86c9bf9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class GetDataLifecycleRequestParameters : RequestParameter } /// -/// Retrieves the data stream lifecycle configuration of one or more data streams. +/// Get data stream lifecycles.
Retrieves the data stream lifecycle configuration of one or more data streams.
///
public sealed partial class GetDataLifecycleRequest : PlainRequest { @@ -73,7 +73,7 @@ public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre } /// -/// Retrieves the data stream lifecycle configuration of one or more data streams. +/// Get data stream lifecycles.
Retrieves the data stream lifecycle configuration of one or more data streams.
///
public sealed partial class GetDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs index ab98fe627c6..a3a475b6fb0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class GetDataStreamRequestParameters : RequestParameters } /// -/// Retrieves information about one or more data streams. +/// Get data streams.
Retrieves information about one or more data streams.
///
public sealed partial class GetDataStreamRequest : PlainRequest { @@ -77,7 +77,7 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamN } /// -/// Retrieves information about one or more data streams. +/// Get data streams.
Retrieves information about one or more data streams.
///
public sealed partial class GetDataStreamRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index d7523fb5d02..c677a8a7692 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -73,7 +73,7 @@ public sealed partial class GetIndexRequestParameters : RequestParameters } /// -/// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+/// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
///
public sealed partial class GetIndexRequest : PlainRequest { @@ -139,7 +139,7 @@ public GetIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) } /// -/// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+/// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
///
public sealed partial class GetIndexRequestDescriptor : RequestDescriptor, GetIndexRequestParameters> { @@ -182,7 +182,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+/// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
///
public sealed partial class GetIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 3bcda543735..f28e0273e20 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -68,7 +68,7 @@ public sealed partial class GetIndicesSettingsRequestParameters : RequestParamet } /// -/// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+/// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
///
public sealed partial class GetIndicesSettingsRequest : PlainRequest { @@ -140,7 +140,7 @@ public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serverless.Names? } /// -/// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+/// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
///
public sealed partial class GetIndicesSettingsRequestDescriptor : RequestDescriptor, GetIndicesSettingsRequestParameters> { @@ -188,7 +188,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+/// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
///
public sealed partial class GetIndicesSettingsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 5d2e51857e4..9fd5421f9c1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -58,7 +58,7 @@ public sealed partial class GetMappingRequestParameters : RequestParameters } /// -/// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+/// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
///
public sealed partial class GetMappingRequest : PlainRequest { @@ -110,7 +110,7 @@ public GetMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indic } /// -/// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+/// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
///
public sealed partial class GetMappingRequestDescriptor : RequestDescriptor, GetMappingRequestParameters> { @@ -150,7 +150,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+/// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
///
public sealed partial class GetMappingRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs index 308fe935c7a..e526110034e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class MigrateToDataStreamRequestParameters : RequestParame } /// -/// Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
+/// Convert an index alias to a data stream.
Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
///
public sealed partial class MigrateToDataStreamRequest : PlainRequest { @@ -52,7 +52,7 @@ public MigrateToDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.Index } /// -/// Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
+/// Convert an index alias to a data stream.
Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
///
public sealed partial class MigrateToDataStreamRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs index 9e8e7df6b07..b4ff90d55a1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class ModifyDataStreamRequestParameters : RequestParameter } /// -/// Performs one or more data stream modification actions in a single atomic operation. +/// Update data streams.
Performs one or more data stream modification actions in a single atomic operation.
///
public sealed partial class ModifyDataStreamRequest : PlainRequest { @@ -54,7 +54,7 @@ public sealed partial class ModifyDataStreamRequest : PlainRequest -/// Performs one or more data stream modification actions in a single atomic operation. +/// Update data streams.
Performs one or more data stream modification actions in a single atomic operation.
///
public sealed partial class ModifyDataStreamRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs index 645cfd34e68..c44ec7b217b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class PutAliasRequestParameters : RequestParameters } /// -/// Adds a data stream or index to an alias. +/// Create or update an alias.
Adds a data stream or index to an alias.
///
public sealed partial class PutAliasRequest : PlainRequest { @@ -103,7 +103,7 @@ public PutAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices, } /// -/// Adds a data stream or index to an alias. +/// Create or update an alias.
Adds a data stream or index to an alias.
///
public sealed partial class PutAliasRequestDescriptor : RequestDescriptor, PutAliasRequestParameters> { @@ -259,7 +259,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Adds a data stream or index to an alias. +/// Create or update an alias.
Adds a data stream or index to an alias.
///
public sealed partial class PutAliasRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index 001b217a36e..fc9cb489b30 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -48,7 +48,7 @@ public sealed partial class PutDataLifecycleRequestParameters : RequestParameter } /// -/// Update the data lifecycle of the specified data streams. +/// Update data stream lifecycles.
Update the data stream lifecycle of the specified data streams.
///
public sealed partial class PutDataLifecycleRequest : PlainRequest { @@ -96,7 +96,7 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre } /// -/// Update the data lifecycle of the specified data streams. +/// Update data stream lifecycles.
Update the data stream lifecycle of the specified data streams.
///
public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs index 346db16d225..3bd0d0eee7e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -68,7 +68,7 @@ public sealed partial class PutIndicesSettingsRequestParameters : RequestParamet } /// -/// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+/// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
///
public sealed partial class PutIndicesSettingsRequest : PlainRequest, ISelfSerializable { @@ -139,7 +139,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op } /// -/// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+/// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
///
public sealed partial class PutIndicesSettingsRequestDescriptor : RequestDescriptor, PutIndicesSettingsRequestParameters> { @@ -204,7 +204,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+/// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
///
public sealed partial class PutIndicesSettingsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index a1a256c608c..700028cb5e8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -63,7 +63,7 @@ public sealed partial class PutMappingRequestParameters : RequestParameters } /// -/// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+/// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
///
public sealed partial class PutMappingRequest : PlainRequest { @@ -185,7 +185,7 @@ public PutMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indice } /// -/// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+/// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
///
public sealed partial class PutMappingRequestDescriptor : RequestDescriptor, PutMappingRequestParameters> { @@ -510,7 +510,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+/// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
///
public sealed partial class PutMappingRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs index cc7834ac5a2..a5d2df75a4a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -48,7 +48,7 @@ public sealed partial class RefreshRequestParameters : RequestParameters } /// -/// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+/// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
///
public sealed partial class RefreshRequest : PlainRequest { @@ -88,7 +88,7 @@ public RefreshRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) } /// -/// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+/// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
///
public sealed partial class RefreshRequestDescriptor : RequestDescriptor, RefreshRequestParameters> { @@ -126,7 +126,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+/// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
///
public sealed partial class RefreshRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverRequest.g.cs index 2f585dcd6c7..d352fa58d37 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverRequest.g.cs @@ -53,7 +53,7 @@ public sealed partial class RolloverRequestParameters : RequestParameters } /// -/// Creates a new index for a data stream or index alias. +/// Roll over to a new index.
Creates a new index for a data stream or index alias.
///
public sealed partial class RolloverRequest : PlainRequest { @@ -123,7 +123,7 @@ public RolloverRequest(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias } /// -/// Creates a new index for a data stream or index alias. +/// Roll over to a new index.
Creates a new index for a data stream or index alias.
///
public sealed partial class RolloverRequestDescriptor : RequestDescriptor, RolloverRequestParameters> { @@ -295,7 +295,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates a new index for a data stream or index alias. +/// Roll over to a new index.
Creates a new index for a data stream or index alias.
///
public sealed partial class RolloverRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs index 49c68b1b331..4354468d5b7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class UpdateAliasesRequestParameters : RequestParameters } /// -/// Adds a data stream or index to an alias. +/// Create or update an alias.
Adds a data stream or index to an alias.
///
public sealed partial class UpdateAliasesRequest : PlainRequest { @@ -75,7 +75,7 @@ public sealed partial class UpdateAliasesRequest : PlainRequest -/// Adds a data stream or index to an alias. +/// Create or update an alias.
Adds a data stream or index to an alias.
///
public sealed partial class UpdateAliasesRequestDescriptor : RequestDescriptor, UpdateAliasesRequestParameters> { @@ -179,7 +179,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Adds a data stream or index to an alias. +/// Create or update an alias.
Adds a data stream or index to an alias.
///
public sealed partial class UpdateAliasesRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index 4fe608ca493..aacb946b0e4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -93,7 +93,7 @@ public sealed partial class ValidateQueryRequestParameters : RequestParameters } /// -/// Validates a potentially expensive query without executing it. +/// Validate a query.
Validates a query without running it.
///
public sealed partial class ValidateQueryRequest : PlainRequest { @@ -193,7 +193,7 @@ public ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? in } /// -/// Validates a potentially expensive query without executing it. +/// Validate a query.
Validates a query without running it.
///
public sealed partial class ValidateQueryRequestDescriptor : RequestDescriptor, ValidateQueryRequestParameters> { @@ -289,7 +289,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Validates a potentially expensive query without executing it. +/// Validate a query.
Validates a query without running it.
///
public sealed partial class ValidateQueryRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs index 0631106aec9..92cde6906fd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs @@ -88,7 +88,7 @@ public sealed partial class IndexRequestParameters : RequestParameters } /// -/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+/// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class IndexRequest : PlainRequest, ISelfSerializable { @@ -183,7 +183,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op } /// -/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+/// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class IndexRequestDescriptor : RequestDescriptor, IndexRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs index 1cdf3ce6c4e..ec0ac8abe93 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class InfoRequestParameters : RequestParameters } /// -/// Returns basic information about the cluster. +/// Get cluster info.
Returns basic information about the cluster.
///
public sealed partial class InfoRequest : PlainRequest { @@ -48,7 +48,7 @@ public sealed partial class InfoRequest : PlainRequest } /// -/// Returns basic information about the cluster. +/// Get cluster info.
Returns basic information about the cluster.
///
public sealed partial class InfoRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs index d9a6c108f8a..2ab1d4db9eb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class GetLicenseRequestParameters : RequestParameters } /// -/// This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
+/// Get license information.
Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires.
For more information about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
///
public sealed partial class GetLicenseRequest : PlainRequest { @@ -58,7 +58,7 @@ public sealed partial class GetLicenseRequest : PlainRequest -/// This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
+/// Get license information.
Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires.
For more information about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
/// public sealed partial class GetLicenseRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobRequest.g.cs index 9f81521a66f..ef5d3dae8ae 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class CloseJobRequestParameters : RequestParameters } /// -/// Close anomaly detection jobs
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
+/// Close anomaly detection jobs.
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
///
public sealed partial class CloseJobRequest : PlainRequest { @@ -70,7 +70,7 @@ public CloseJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base } /// -/// Close anomaly detection jobs
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
+/// Close anomaly detection jobs.
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
///
public sealed partial class CloseJobRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs index c464fd50e74..adfc2070885 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs @@ -48,8 +48,7 @@ public sealed partial class DeleteJobRequestParameters : RequestParameters } /// -/// Deletes an anomaly detection job. -/// All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
+/// Delete an anomaly detection job.
All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
///
public sealed partial class DeleteJobRequest : PlainRequest { @@ -85,8 +84,7 @@ public DeleteJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : bas } /// -/// Deletes an anomaly detection job. -/// All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
+/// Delete an anomaly detection job.
All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
///
public sealed partial class DeleteJobRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobRequest.g.cs index 8d28fac6259..21583855f9a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class OpenJobRequestParameters : RequestParameters } /// -/// Opens one or more anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
+/// Open anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
///
public sealed partial class OpenJobRequest : PlainRequest { @@ -58,7 +58,7 @@ public OpenJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base( } /// -/// Opens one or more anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
+/// Open anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
///
public sealed partial class OpenJobRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobRequest.g.cs index a6ca89f4552..749ab93417c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class PutJobRequestParameters : RequestParameters } /// -/// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. +/// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
///
public sealed partial class PutJobRequest : PlainRequest { @@ -142,7 +142,7 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r } /// -/// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. +/// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
///
public sealed partial class PutJobRequestDescriptor : RequestDescriptor, PutJobRequestParameters> { @@ -565,7 +565,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. +/// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
///
public sealed partial class PutJobRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs index eb3e852b8b0..5465897c65c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class PingRequestParameters : RequestParameters } /// -/// Returns whether the cluster is running. +/// Ping the cluster.
Returns whether the cluster is running.
///
public sealed partial class PingRequest : PlainRequest { @@ -48,7 +48,7 @@ public sealed partial class PingRequest : PlainRequest } /// -/// Returns whether the cluster is running. +/// Ping the cluster.
Returns whether the cluster is running.
///
public sealed partial class PingRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs index 29720f9ecd8..cf6aee4132d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class PutScriptRequestParameters : RequestParameters } /// -/// Creates or updates a stored script or search template. +/// Create or update a script or search template.
Creates or updates a stored script or search template.
///
public sealed partial class PutScriptRequest : PlainRequest { @@ -83,7 +83,7 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic. } /// -/// Creates or updates a stored script or search template. +/// Create or update a script or search template.
Creates or updates a stored script or search template.
///
public sealed partial class PutScriptRequestDescriptor : RequestDescriptor, PutScriptRequestParameters> { @@ -175,7 +175,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates or updates a stored script or search template. +/// Create or update a script or search template.
Creates or updates a stored script or search template.
///
public sealed partial class PutScriptRequestDescriptor : RequestDescriptor { 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 index 63d2fc47f3f..c7a1d487330 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs @@ -31,7 +31,10 @@ public sealed partial class GetRuleResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; init; } [JsonInclude, JsonPropertyName("criteria")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteria))] public IReadOnlyCollection Criteria { get; init; } + [JsonInclude, JsonPropertyName("priority")] + public int? Priority { get; init; } [JsonInclude, JsonPropertyName("rule_id")] public string RuleId { get; init; } [JsonInclude, JsonPropertyName("type")] 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 index 89f9792991b..17fc1de770c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs @@ -53,7 +53,10 @@ public PutRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Ela [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; set; } [JsonInclude, JsonPropertyName("criteria")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteria))] public ICollection Criteria { get; set; } + [JsonInclude, JsonPropertyName("priority")] + public int? Priority { get; set; } [JsonInclude, JsonPropertyName("type")] public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType Type { get; set; } } @@ -96,6 +99,7 @@ public PutRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverle private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor CriteriaDescriptor { get; set; } private Action CriteriaDescriptorAction { get; set; } private Action[] CriteriaDescriptorActions { get; set; } + private int? PriorityValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType TypeValue { get; set; } public PutRuleRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions actions) @@ -158,6 +162,12 @@ public PutRuleRequestDescriptor Criteria(params Action(CriteriaValue, writer, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); } writer.WritePropertyName("type"); 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 index d82f1073db1..df39b62d120 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs @@ -51,6 +51,7 @@ public PutRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) internal override string OperationName => "query_rules.put_ruleset"; [JsonInclude, JsonPropertyName("rules")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRule))] public ICollection Rules { get; set; } } @@ -126,32 +127,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o 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(); + if (RulesDescriptorActions.Length != 1) + writer.WriteStartArray(); foreach (var action in RulesDescriptorActions) { JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor(action), options); } - writer.WriteEndArray(); + if (RulesDescriptorActions.Length != 1) + writer.WriteEndArray(); } else { writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, RulesValue, options); + SingleOrManySerializationHelper.Serialize(RulesValue, writer, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs index 5701163cc95..5c118907a77 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs @@ -73,7 +73,7 @@ public sealed partial class ReindexRequestParameters : RequestParameters } /// -/// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+/// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
///
public sealed partial class ReindexRequest : PlainRequest { @@ -167,7 +167,7 @@ public sealed partial class ReindexRequest : PlainRequest -/// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+/// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// public sealed partial class ReindexRequestDescriptor : RequestDescriptor, ReindexRequestParameters> { @@ -200,6 +200,8 @@ public ReindexRequestDescriptor() private Action DestDescriptorAction { get; set; } private long? MaxDocsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private long? SizeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source SourceValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.SourceDescriptor SourceDescriptor { get; set; } @@ -255,10 +257,28 @@ public ReindexRequestDescriptor MaxDocs(long? maxDocs) /// public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ReindexRequestDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ReindexRequestDescriptor Size(long? size) { SizeValue = size; @@ -323,7 +343,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxDocsValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -356,7 +386,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+/// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
///
public sealed partial class ReindexRequestDescriptor : RequestDescriptor { @@ -389,6 +419,8 @@ public ReindexRequestDescriptor() private Action DestDescriptorAction { get; set; } private long? MaxDocsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private long? SizeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source SourceValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.SourceDescriptor SourceDescriptor { get; set; } @@ -444,10 +476,28 @@ public ReindexRequestDescriptor MaxDocs(long? maxDocs) /// public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ReindexRequestDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ReindexRequestDescriptor Size(long? size) { SizeValue = size; @@ -512,7 +562,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxDocsValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs index 94cfcbea02c..8a5f2822dff 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class SearchMvtRequestParameters : RequestParameters } /// -/// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. +/// Search a vector tile.
Searches a vector tile for geospatial values.
///
public sealed partial class SearchMvtRequest : PlainRequest { @@ -139,7 +139,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices } /// -/// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. +/// Search a vector tile.
Searches a vector tile for geospatial values.
///
public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor, SearchMvtRequestParameters> { @@ -511,7 +511,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. +/// Search a vector tile.
Searches a vector tile for geospatial values.
///
public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs index 77f8ad1e034..c27095b46c3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs @@ -88,7 +88,7 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters } /// -/// Returns information and statistics about terms in the fields of a particular document. +/// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
///
public sealed partial class TermVectorsRequest : PlainRequest { @@ -195,7 +195,7 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName ind } /// -/// Returns information and statistics about terms in the fields of a particular document. +/// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
///
public sealed partial class TermVectorsRequestDescriptor : RequestDescriptor, TermVectorsRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs index 27e97ebc74c..f2c69d342cf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs @@ -31,7 +31,7 @@ public sealed partial class TermVectorsResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } + public string? Id { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("term_vectors")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs index eb990db8b59..2f1b3437ff7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs @@ -48,7 +48,7 @@ public sealed partial class DeleteTransformRequestParameters : RequestParameters } /// -/// Deletes a transform. +/// Delete a transform.
Deletes a transform.
///
public sealed partial class DeleteTransformRequest : PlainRequest { @@ -84,7 +84,7 @@ public DeleteTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transf } /// -/// Deletes a transform. +/// Delete a transform.
Deletes a transform.
///
public sealed partial class DeleteTransformRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs index 0279a803a73..1dc4dbe32a1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs @@ -55,7 +55,7 @@ public sealed partial class GetTransformRequestParameters : RequestParameters } /// -/// Retrieves configuration information for transforms. +/// Get transforms.
Retrieves configuration information for transforms.
///
public sealed partial class GetTransformRequest : PlainRequest { @@ -103,7 +103,7 @@ public GetTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Names? trans } /// -/// Retrieves configuration information for transforms. +/// Get transforms.
Retrieves configuration information for transforms.
///
public sealed partial class GetTransformRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs index f8b44fb1f7b..28fa8d84769 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs @@ -55,7 +55,7 @@ public sealed partial class GetTransformStatsRequestParameters : RequestParamete } /// -/// Retrieves usage information for transforms. +/// Get transform stats.
Retrieves usage information for transforms.
///
public sealed partial class GetTransformStatsRequest : PlainRequest { @@ -99,7 +99,7 @@ public GetTransformStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Names t } /// -/// Retrieves usage information for transforms. +/// Get transform stats.
Retrieves usage information for transforms.
///
public sealed partial class GetTransformStatsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs index 71907527f46..62bcf8b9347 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class PreviewTransformRequestParameters : RequestParameter } /// -/// Previews a transform. +/// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
///
public sealed partial class PreviewTransformRequest : PlainRequest @@ -121,7 +121,7 @@ public PreviewTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id? tran } /// -/// Previews a transform. +/// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
///
public sealed partial class PreviewTransformRequestDescriptor : RequestDescriptor, PreviewTransformRequestParameters> @@ -515,7 +515,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Previews a transform. +/// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
///
public sealed partial class PreviewTransformRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformRequest.g.cs index d4ee2175c10..e16673d7d1b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class PutTransformRequestParameters : RequestParameters } /// -/// Creates a transform. +/// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -137,7 +137,7 @@ public PutTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transform } /// -/// Creates a transform. +/// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -547,7 +547,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates a transform. +/// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs index f626fe41ac8..9d61f79ccfb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class ResetTransformRequestParameters : RequestParameters } /// -/// Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
+/// Reset a transform.
Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
///
public sealed partial class ResetTransformRequest : PlainRequest { @@ -62,7 +62,7 @@ public ResetTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transfo } /// -/// Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
+/// Reset a transform.
Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
///
public sealed partial class ResetTransformRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs index a5df259de06..f42efbafa3e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs @@ -38,7 +38,7 @@ public sealed partial class ScheduleNowTransformRequestParameters : RequestParam } /// -/// Schedules now a transform. +/// Schedule a transform to start now.
Instantly runs a transform to process data.
/// If you _schedule_now a transform, it will process the new data instantly,
without waiting for the configured frequency interval. After _schedule_now API is called,
the transform will be processed again at now + frequency unless _schedule_now API
is called again in the meantime.
///
public sealed partial class ScheduleNowTransformRequest : PlainRequest @@ -63,7 +63,7 @@ public ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id t } /// -/// Schedules now a transform. +/// Schedule a transform to start now.
Instantly runs a transform to process data.
/// If you _schedule_now a transform, it will process the new data instantly,
without waiting for the configured frequency interval. After _schedule_now API is called,
the transform will be processed again at now + frequency unless _schedule_now API
is called again in the meantime.
///
public sealed partial class ScheduleNowTransformRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs index c25c624a377..32084a6bd6d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class StartTransformRequestParameters : RequestParameters } /// -/// Starts a transform. +/// Start a transform.
Starts a transform.
/// When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping
definitions for the destination index from the source indices and the transform aggregations. If fields in the
destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),
the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
in a pivot transform.
/// When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
created the transform, they occur when you start the transform—​with the exception of privilege checks. When
Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
time of creation and uses those same roles. If those roles do not have the required privileges on the source and
destination indices, the transform fails when it attempts unauthorized operations.
///
@@ -75,7 +75,7 @@ public StartTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transfo } /// -/// Starts a transform. +/// Start a transform.
Starts a transform.
/// When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping
definitions for the destination index from the source indices and the transform aggregations. If fields in the
destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),
the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
in a pivot transform.
/// When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
created the transform, they occur when you start the transform—​with the exception of privilege checks. When
Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
time of creation and uses those same roles. If those roles do not have the required privileges on the source and
destination indices, the transform fails when it attempts unauthorized operations.
///
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs index f88a9e48d0c..119630269bf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs @@ -60,7 +60,7 @@ public sealed partial class StopTransformRequestParameters : RequestParameters } /// -/// Stops one or more transforms. +/// Stop transforms.
Stops one or more transforms.
///
public sealed partial class StopTransformRequest : PlainRequest { @@ -110,7 +110,7 @@ public StopTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Name transf } /// -/// Stops one or more transforms. +/// Stop transforms.
Stops one or more transforms.
///
public sealed partial class StopTransformRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs index 5235568ebaf..3aaf0e28bc1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class UpdateTransformRequestParameters : RequestParameters } /// -/// Updates certain properties of a transform. +/// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
///
public sealed partial class UpdateTransformRequest : PlainRequest @@ -122,7 +122,7 @@ public UpdateTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transf } /// -/// Updates certain properties of a transform. +/// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
///
public sealed partial class UpdateTransformRequestDescriptor : RequestDescriptor, UpdateTransformRequestParameters> @@ -437,7 +437,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Updates certain properties of a transform. +/// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
///
public sealed partial class UpdateTransformRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs index 6fdc0197dcc..5f2ccb1796f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs @@ -173,7 +173,7 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters } /// -/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+/// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequest : PlainRequest { @@ -389,7 +389,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind } /// -/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+/// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor, UpdateByQueryRequestParameters> { @@ -452,6 +452,8 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elastic private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action> QueryDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? SliceValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor SliceDescriptor { get; set; } private Action> SliceDescriptorAction { get; set; } @@ -506,10 +508,28 @@ public UpdateByQueryRequestDescriptor Query(Action public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public UpdateByQueryRequestDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Slice the request manually using the provided slice ID and total number of slices. /// @@ -568,7 +588,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -595,7 +625,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+/// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor { @@ -654,6 +684,8 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serv private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? SliceValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor SliceDescriptor { get; set; } private Action SliceDescriptorAction { get; set; } @@ -708,10 +740,28 @@ public UpdateByQueryRequestDescriptor Query(Action public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public UpdateByQueryRequestDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Slice the request manually using the provided slice ID and total number of slices. /// @@ -770,7 +820,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs index 3c296d552c8..c6681c27e76 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs @@ -88,7 +88,7 @@ public sealed partial class UpdateRequestParameters : RequestParameters } /// -/// Updates a document with a script or partial document. +/// Update a document.
Updates a document by running a script or passing a partial document.
///
public sealed partial class UpdateRequest : PlainRequest { @@ -216,7 +216,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E } /// -/// Updates a document with a script or partial document. +/// Update a document.
Updates a document by running a script or passing a partial document.
///
public sealed partial class UpdateRequestDescriptor : RequestDescriptor, UpdateRequestParameters> { @@ -278,6 +278,8 @@ public UpdateRequestDescriptor Index(Elastic.Client private TPartialDocument? DocValue { get; set; } private bool? DocAsUpsertValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? ScriptedUpsertValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } private TDocument? UpsertValue { get; set; } @@ -314,10 +316,28 @@ public UpdateRequestDescriptor DocAsUpsert(bool? do ///
public UpdateRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public UpdateRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public UpdateRequestDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Set to true to execute the script whether or not the document exists. /// @@ -366,7 +386,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(DocAsUpsertValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 203ad78c582..5d61131d0d0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -81,7 +81,7 @@ public virtual Task AllocationExplainAsync(Action - /// Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Delete component templates.
Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) @@ -91,7 +91,7 @@ public virtual Task DeleteComponentTemplateAsyn } /// - /// Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Delete component templates.
Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -101,7 +101,7 @@ public virtual Task DeleteComponentTemplateAsyn } /// - /// Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Delete component templates.
Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -112,7 +112,7 @@ public virtual Task DeleteComponentTemplateAsyn } /// - /// Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Delete component templates.
Deletes component templates.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) @@ -124,7 +124,7 @@ public virtual Task DeleteComponentTemplateAsyn } /// - /// Returns information about whether a particular component template exist + /// Check component templates.
Returns information about whether a particular component template exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) @@ -134,7 +134,7 @@ public virtual Task ExistsComponentTemplateAsyn } /// - /// Returns information about whether a particular component template exist + /// Check component templates.
Returns information about whether a particular component template exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -144,7 +144,7 @@ public virtual Task ExistsComponentTemplateAsyn } /// - /// Returns information about whether a particular component template exist + /// Check component templates.
Returns information about whether a particular component template exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -155,7 +155,7 @@ public virtual Task ExistsComponentTemplateAsyn } /// - /// Returns information about whether a particular component template exist + /// Check component templates.
Returns information about whether a particular component template exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) @@ -167,7 +167,7 @@ public virtual Task ExistsComponentTemplateAsyn } /// - /// Retrieves information about component templates. + /// Get component templates.
Retrieves information about component templates.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequest request, CancellationToken cancellationToken = default) @@ -177,7 +177,7 @@ public virtual Task GetComponentTemplateAsync(GetC } /// - /// Retrieves information about component templates. + /// Get component templates.
Retrieves information about component templates.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -187,7 +187,7 @@ public virtual Task GetComponentTemplateAsync(GetC } /// - /// Retrieves information about component templates. + /// Get component templates.
Retrieves information about component templates.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) @@ -198,7 +198,7 @@ public virtual Task GetComponentTemplateAsync(Elas } /// - /// Retrieves information about component templates. + /// Get component templates.
Retrieves information about component templates.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default) @@ -210,7 +210,7 @@ public virtual Task GetComponentTemplateAsync(Elas } /// - /// Retrieves information about component templates. + /// Get component templates.
Retrieves information about component templates.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) @@ -221,7 +221,7 @@ public virtual Task GetComponentTemplateAsync(Canc } /// - /// Retrieves information about component templates. + /// Get component templates.
Retrieves information about component templates.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -398,7 +398,7 @@ public virtual Task HealthAsync(Action } /// - /// Returns different information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(ClusterInfoRequest request, CancellationToken cancellationToken = default) @@ -408,7 +408,7 @@ public virtual Task InfoAsync(ClusterInfoRequest request, C } /// - /// Returns different information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(ClusterInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -418,7 +418,7 @@ public virtual Task InfoAsync(ClusterInfoRequestDescriptor } /// - /// Returns different information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(IReadOnlyCollection target, CancellationToken cancellationToken = default) @@ -429,7 +429,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Returns different information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(IReadOnlyCollection target, Action configureRequest, CancellationToken cancellationToken = default) @@ -484,7 +484,7 @@ public virtual Task PendingTasksAsync(Action - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -498,7 +498,7 @@ public virtual Task PutComponentTemplateAsync(PutC } /// - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -512,7 +512,7 @@ public virtual Task PutComponentTemplateAsync - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -527,7 +527,7 @@ public virtual Task PutComponentTemplateAsync - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -543,7 +543,7 @@ public virtual Task PutComponentTemplateAsync - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -557,7 +557,7 @@ public virtual Task PutComponentTemplateAsync(PutC } /// - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
@@ -572,7 +572,7 @@ public virtual Task PutComponentTemplateAsync(Elas } /// - /// Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
+ /// Create or update a component template.
Creates or updates a component template.
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
/// An index template can be composed of multiple component templates.
To use a component template, specify it in an index template’s `composed_of` list.
Component templates are only applied to new data streams and indices as part of a matching index template.
/// Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. /// Component templates are only used during index creation.
For data streams, this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s backing indices.
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs index d2fa4c1da87..d45592880b2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -38,7 +38,7 @@ internal EnrichNamespacedClient(ElasticsearchClient client) : base(client) } /// - /// Deletes an existing enrich policy and its enrich index. + /// Delete an enrich policy.
Deletes an existing enrich policy and its enrich index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeletePolicyAsync(DeletePolicyRequest request, CancellationToken cancellationToken = default) @@ -48,7 +48,7 @@ public virtual Task DeletePolicyAsync(DeletePolicyRequest } /// - /// Deletes an existing enrich policy and its enrich index. + /// Delete an enrich policy.
Deletes an existing enrich policy and its enrich index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeletePolicyAsync(DeletePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -58,7 +58,7 @@ public virtual Task DeletePolicyAsync(DeletePolicyRequestD } /// - /// Deletes an existing enrich policy and its enrich index. + /// Delete an enrich policy.
Deletes an existing enrich policy and its enrich index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) @@ -69,7 +69,7 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas } /// - /// Deletes an existing enrich policy and its enrich index. + /// Delete an enrich policy.
Deletes an existing enrich policy and its enrich index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) @@ -124,7 +124,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El } /// - /// Returns information about an enrich policy. + /// Get an enrich policy.
Returns information about an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetPolicyAsync(GetPolicyRequest request, CancellationToken cancellationToken = default) @@ -134,7 +134,7 @@ public virtual Task GetPolicyAsync(GetPolicyRequest request, } /// - /// Returns information about an enrich policy. + /// Get an enrich policy.
Returns information about an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetPolicyAsync(GetPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -144,7 +144,7 @@ public virtual Task GetPolicyAsync(GetPolicyRequestDescriptor } /// - /// Returns information about an enrich policy. + /// Get an enrich policy.
Returns information about an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) @@ -155,7 +155,7 @@ public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsea } /// - /// Returns information about an enrich policy. + /// Get an enrich policy.
Returns information about an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) @@ -167,7 +167,7 @@ public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsea } /// - /// Returns information about an enrich policy. + /// Get an enrich policy.
Returns information about an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetPolicyAsync(CancellationToken cancellationToken = default) @@ -178,7 +178,7 @@ public virtual Task GetPolicyAsync(CancellationToken cancella } /// - /// Returns information about an enrich policy. + /// Get an enrich policy.
Returns information about an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetPolicyAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -190,7 +190,7 @@ public virtual Task GetPolicyAsync(Action - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) @@ -200,7 +200,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, } /// - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -210,7 +210,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques } /// - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) @@ -221,7 +221,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients } /// - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -233,7 +233,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients } /// - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -243,7 +243,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor } /// - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) @@ -254,7 +254,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea } /// - /// Creates an enrich policy. + /// Create an enrich policy.
Creates an enrich policy.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) @@ -266,7 +266,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea } /// - /// Returns enrich coordinator statistics and information about enrich policies that are currently executing. + /// Get enrich stats.
Returns enrich coordinator statistics and information about enrich policies that are currently executing.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StatsAsync(EnrichStatsRequest request, CancellationToken cancellationToken = default) @@ -276,7 +276,7 @@ public virtual Task StatsAsync(EnrichStatsRequest request, } /// - /// Returns enrich coordinator statistics and information about enrich policies that are currently executing. + /// Get enrich stats.
Returns enrich coordinator statistics and information about enrich policies that are currently executing.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StatsAsync(EnrichStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -286,7 +286,7 @@ public virtual Task StatsAsync(EnrichStatsRequestDescriptor } /// - /// Returns enrich coordinator statistics and information about enrich policies that are currently executing. + /// Get enrich stats.
Returns enrich coordinator statistics and information about enrich policies that are currently executing.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StatsAsync(CancellationToken cancellationToken = default) @@ -297,7 +297,7 @@ public virtual Task StatsAsync(CancellationToken cancellati } /// - /// Returns enrich coordinator statistics and information about enrich policies that are currently executing. + /// Get enrich stats.
Returns enrich coordinator statistics and information about enrich policies that are currently executing.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs new file mode 100644 index 00000000000..98074501f2d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -0,0 +1,115 @@ +// 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.Esql; + +public partial class EsqlNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected EsqlNamespacedClient() : base() + { + } + + internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EsqlQueryResponse, EsqlQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new EsqlQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, EsqlQueryResponse, EsqlQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EsqlQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, EsqlQueryResponse, EsqlQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new EsqlQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Executes an ES|QL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EsqlQueryRequestDescriptor(); + 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.Indices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs index ee0ca420c9f..c05c1a97225 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 @@ -381,7 +381,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) @@ -391,7 +391,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -401,7 +401,7 @@ public virtual Task CreateAsync(CreateIndexReque } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -412,7 +412,7 @@ public virtual Task CreateAsync(Elastic.Clients. } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -424,7 +424,7 @@ public virtual Task CreateAsync(Elastic.Clients. } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(CancellationToken cancellationToken = default) @@ -435,7 +435,7 @@ public virtual Task CreateAsync(CancellationToke } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -447,7 +447,7 @@ public virtual Task CreateAsync(Action - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -457,7 +457,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -468,7 +468,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear } /// - /// Creates a new index. + /// Create an index.
Creates a new index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) @@ -480,7 +480,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear } /// - /// Creates a data stream.
You must have a matching index template with data stream enabled.
+ /// Create a data stream.
Creates a data stream.
You must have a matching index template with data stream enabled.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateDataStreamAsync(CreateDataStreamRequest request, CancellationToken cancellationToken = default) @@ -490,7 +490,7 @@ public virtual Task CreateDataStreamAsync(CreateDataSt } /// - /// Creates a data stream.
You must have a matching index template with data stream enabled.
+ /// Create a data stream.
Creates a data stream.
You must have a matching index template with data stream enabled.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateDataStreamAsync(CreateDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -500,7 +500,7 @@ public virtual Task CreateDataStreamAsync(CreateDataSt } /// - /// Creates a data stream.
You must have a matching index template with data stream enabled.
+ /// Create a data stream.
Creates a data stream.
You must have a matching index template with data stream enabled.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamName name, CancellationToken cancellationToken = default) @@ -511,7 +511,7 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie } /// - /// Creates a data stream.
You must have a matching index template with data stream enabled.
+ /// Create a data stream.
Creates a data stream.
You must have a matching index template with data stream enabled.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamName name, Action configureRequest, CancellationToken cancellationToken = default) @@ -523,7 +523,7 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie } /// - /// Retrieves statistics for one or more data streams. + /// Get data stream stats.
Retrieves statistics for one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DataStreamsStatsAsync(DataStreamsStatsRequest request, CancellationToken cancellationToken = default) @@ -533,7 +533,7 @@ public virtual Task DataStreamsStatsAsync(DataStreamsS } /// - /// Retrieves statistics for one or more data streams. + /// Get data stream stats.
Retrieves statistics for one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DataStreamsStatsAsync(DataStreamsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -543,7 +543,7 @@ public virtual Task DataStreamsStatsAsync(DataStreamsS } /// - /// Retrieves statistics for one or more data streams. + /// Get data stream stats.
Retrieves statistics for one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? name, CancellationToken cancellationToken = default) @@ -554,7 +554,7 @@ public virtual Task DataStreamsStatsAsync(Elastic.Clie } /// - /// Retrieves statistics for one or more data streams. + /// Get data stream stats.
Retrieves statistics for one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? name, Action configureRequest, CancellationToken cancellationToken = default) @@ -566,7 +566,7 @@ public virtual Task DataStreamsStatsAsync(Elastic.Clie } /// - /// Retrieves statistics for one or more data streams. + /// Get data stream stats.
Retrieves statistics for one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DataStreamsStatsAsync(CancellationToken cancellationToken = default) @@ -577,7 +577,7 @@ public virtual Task DataStreamsStatsAsync(Cancellation } /// - /// Retrieves statistics for one or more data streams. + /// Get data stream stats.
Retrieves statistics for one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DataStreamsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -589,7 +589,7 @@ public virtual Task DataStreamsStatsAsync(Action - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(DeleteIndexRequest request, CancellationToken cancellationToken = default) @@ -599,7 +599,7 @@ public virtual Task DeleteAsync(DeleteIndexRequest request, } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -609,7 +609,7 @@ public virtual Task DeleteAsync(DeleteIndexReque } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -620,7 +620,7 @@ public virtual Task DeleteAsync(Elastic.Clients. } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -632,7 +632,7 @@ public virtual Task DeleteAsync(Elastic.Clients. } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(CancellationToken cancellationToken = default) @@ -643,7 +643,7 @@ public virtual Task DeleteAsync(CancellationToke } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -655,7 +655,7 @@ public virtual Task DeleteAsync(Action - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -665,7 +665,7 @@ public virtual Task DeleteAsync(DeleteIndexRequestDescripto } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -676,7 +676,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear } /// - /// Deletes one or more indices. + /// Delete indices.
Deletes one or more indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -688,7 +688,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(DeleteAliasRequest request, CancellationToken cancellationToken = default) @@ -698,7 +698,7 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequest req } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -708,7 +708,7 @@ public virtual Task DeleteAliasAsync(DeleteAlias } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -719,7 +719,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -731,7 +731,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -742,7 +742,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -754,7 +754,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -764,7 +764,7 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequestDesc } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -775,7 +775,7 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti } /// - /// Removes a data stream or index from an alias. + /// Delete an alias.
Removes a data stream or index from an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) @@ -787,7 +787,7 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti } /// - /// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle + /// Delete data stream lifecycles.
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequest request, CancellationToken cancellationToken = default) @@ -797,7 +797,7 @@ public virtual Task DeleteDataLifecycleAsync(Delete } /// - /// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle + /// Delete data stream lifecycles.
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -807,7 +807,7 @@ public virtual Task DeleteDataLifecycleAsync(Delete } /// - /// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle + /// Delete data stream lifecycles.
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) @@ -818,7 +818,7 @@ public virtual Task DeleteDataLifecycleAsync(Elasti } /// - /// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle + /// Delete data stream lifecycles.
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) @@ -830,7 +830,7 @@ public virtual Task DeleteDataLifecycleAsync(Elasti } /// - /// Deletes one or more data streams and their backing indices. + /// Delete data streams.
Deletes one or more data streams and their backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequest request, CancellationToken cancellationToken = default) @@ -840,7 +840,7 @@ public virtual Task DeleteDataStreamAsync(DeleteDataSt } /// - /// Deletes one or more data streams and their backing indices. + /// Delete data streams.
Deletes one or more data streams and their backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -850,7 +850,7 @@ public virtual Task DeleteDataStreamAsync(DeleteDataSt } /// - /// Deletes one or more data streams and their backing indices. + /// Delete data streams.
Deletes one or more data streams and their backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) @@ -861,7 +861,7 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie } /// - /// Deletes one or more data streams and their backing indices. + /// Delete data streams.
Deletes one or more data streams and their backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) @@ -916,7 +916,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) @@ -926,7 +926,7 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -936,7 +936,7 @@ public virtual Task ExistsAsync(ExistsRequestDescript } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -947,7 +947,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -959,7 +959,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(CancellationToken cancellationToken = default) @@ -970,7 +970,7 @@ public virtual Task ExistsAsync(CancellationToken can } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -982,7 +982,7 @@ public virtual Task ExistsAsync(Action - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -992,7 +992,7 @@ public virtual Task ExistsAsync(ExistsRequestDescriptor descript } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -1003,7 +1003,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Checks if a data stream, index, or alias exists. + /// Check indices.
Checks if one or more indices, index aliases, or data streams exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -1015,7 +1015,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(ExistsAliasRequest request, CancellationToken cancellationToken = default) @@ -1025,7 +1025,7 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequest req } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1035,7 +1035,7 @@ public virtual Task ExistsAliasAsync(ExistsAlias } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -1046,7 +1046,7 @@ public virtual Task ExistsAliasAsync(Elastic.Cli } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1058,7 +1058,7 @@ public virtual Task ExistsAliasAsync(Elastic.Cli } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -1069,7 +1069,7 @@ public virtual Task ExistsAliasAsync(Elastic.Cli } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1081,7 +1081,7 @@ public virtual Task ExistsAliasAsync(Elastic.Cli } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1091,7 +1091,7 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequestDesc } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -1102,7 +1102,7 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) @@ -1114,7 +1114,7 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) @@ -1125,7 +1125,7 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti } /// - /// Checks if an alias exists. + /// Check aliases.
Checks if one or more data stream or index aliases exist.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) @@ -1180,7 +1180,7 @@ public virtual Task ExistsIndexTemplateAsync(Elasti } /// - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequest request, CancellationToken cancellationToken = default) @@ -1190,7 +1190,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl } /// - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1200,7 +1200,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -1211,7 +1211,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1223,7 +1223,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(CancellationToken cancellationToken = default) @@ -1234,7 +1234,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -1246,7 +1246,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1256,7 +1256,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl } /// - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -1267,7 +1267,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas } /// - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Get the status for a data stream lifecycle.
Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -1523,7 +1523,7 @@ public virtual Task ForcemergeAsync(Action - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequest request, CancellationToken cancellationToken = default) @@ -1533,7 +1533,7 @@ public virtual Task GetAsync(GetIndexRequest request, Cancella } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1543,7 +1543,7 @@ public virtual Task GetAsync(GetIndexRequestDescrip } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -1554,7 +1554,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasti } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1566,7 +1566,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasti } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(CancellationToken cancellationToken = default) @@ -1577,7 +1577,7 @@ public virtual Task GetAsync(CancellationToken canc } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -1589,7 +1589,7 @@ public virtual Task GetAsync(Action - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1599,7 +1599,7 @@ public virtual Task GetAsync(GetIndexRequestDescriptor descrip } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -1610,7 +1610,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ser } /// - /// Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
+ /// Get index information.
Returns information about one or more indices. For data streams, the API returns information about the
stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -1622,7 +1622,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ser } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(GetAliasRequest request, CancellationToken cancellationToken = default) @@ -1632,7 +1632,7 @@ public virtual Task GetAliasAsync(GetAliasRequest request, Can } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1642,7 +1642,7 @@ public virtual Task GetAliasAsync(GetAliasRequestDe } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) @@ -1653,7 +1653,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.E } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1665,7 +1665,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.E } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) @@ -1676,7 +1676,7 @@ public virtual Task GetAliasAsync(CancellationToken } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -1688,7 +1688,7 @@ public virtual Task GetAliasAsync(Action - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1698,7 +1698,7 @@ public virtual Task GetAliasAsync(GetAliasRequestDescriptor de } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) @@ -1709,7 +1709,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearc } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) @@ -1721,7 +1721,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearc } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) @@ -1732,7 +1732,7 @@ public virtual Task GetAliasAsync(CancellationToken cancellati } /// - /// Retrieves information for one or more aliases. + /// Get aliases.
Retrieves information for one or more data stream or index aliases.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAliasAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -1744,7 +1744,7 @@ public virtual Task GetAliasAsync(Action - /// Retrieves the data stream lifecycle configuration of one or more data streams. + /// Get data stream lifecycles.
Retrieves the data stream lifecycle configuration of one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequest request, CancellationToken cancellationToken = default) @@ -1754,7 +1754,7 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec } /// - /// Retrieves the data stream lifecycle configuration of one or more data streams. + /// Get data stream lifecycles.
Retrieves the data stream lifecycle configuration of one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1764,7 +1764,7 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec } /// - /// Retrieves the data stream lifecycle configuration of one or more data streams. + /// Get data stream lifecycles.
Retrieves the data stream lifecycle configuration of one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) @@ -1775,7 +1775,7 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie } /// - /// Retrieves the data stream lifecycle configuration of one or more data streams. + /// Get data stream lifecycles.
Retrieves the data stream lifecycle configuration of one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) @@ -1787,7 +1787,7 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie } /// - /// Retrieves information about one or more data streams. + /// Get data streams.
Retrieves information about one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataStreamAsync(GetDataStreamRequest request, CancellationToken cancellationToken = default) @@ -1797,7 +1797,7 @@ public virtual Task GetDataStreamAsync(GetDataStreamReque } /// - /// Retrieves information about one or more data streams. + /// Get data streams.
Retrieves information about one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataStreamAsync(GetDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1807,7 +1807,7 @@ public virtual Task GetDataStreamAsync(GetDataStreamReque } /// - /// Retrieves information about one or more data streams. + /// Get data streams.
Retrieves information about one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name, CancellationToken cancellationToken = default) @@ -1818,7 +1818,7 @@ public virtual Task GetDataStreamAsync(Elastic.Clients.El } /// - /// Retrieves information about one or more data streams. + /// Get data streams.
Retrieves information about one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name, Action configureRequest, CancellationToken cancellationToken = default) @@ -1830,7 +1830,7 @@ public virtual Task GetDataStreamAsync(Elastic.Clients.El } /// - /// Retrieves information about one or more data streams. + /// Get data streams.
Retrieves information about one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataStreamAsync(CancellationToken cancellationToken = default) @@ -1841,7 +1841,7 @@ public virtual Task GetDataStreamAsync(CancellationToken } /// - /// Retrieves information about one or more data streams. + /// Get data streams.
Retrieves information about one or more data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetDataStreamAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -1919,7 +1919,7 @@ public virtual Task GetIndexTemplateAsync(Action - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequest request, CancellationToken cancellationToken = default) @@ -1929,7 +1929,7 @@ public virtual Task GetMappingAsync(GetMappingRequest reques } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1939,7 +1939,7 @@ public virtual Task GetMappingAsync(GetMappingReq } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -1950,7 +1950,7 @@ public virtual Task GetMappingAsync(Elastic.Clien } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1962,7 +1962,7 @@ public virtual Task GetMappingAsync(Elastic.Clien } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) @@ -1973,7 +1973,7 @@ public virtual Task GetMappingAsync(CancellationT } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -1985,7 +1985,7 @@ public virtual Task GetMappingAsync(Action - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1995,7 +1995,7 @@ public virtual Task GetMappingAsync(GetMappingRequestDescrip } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -2006,7 +2006,7 @@ public virtual Task GetMappingAsync(Elastic.Clients.Elastics } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -2018,7 +2018,7 @@ public virtual Task GetMappingAsync(Elastic.Clients.Elastics } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) @@ -2029,7 +2029,7 @@ public virtual Task GetMappingAsync(CancellationToken cancel } /// - /// Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
+ /// Get mapping definitions.
Retrieves mapping definitions for one or more indices.
For data streams, the API retrieves mappings for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -2041,7 +2041,7 @@ public virtual Task GetMappingAsync(Action - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequest request, CancellationToken cancellationToken = default) @@ -2051,7 +2051,7 @@ public virtual Task GetSettingsAsync(GetIndicesSetti } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2061,7 +2061,7 @@ public virtual Task GetSettingsAsync(GetI } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) @@ -2072,7 +2072,7 @@ public virtual Task GetSettingsAsync(Elas } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2084,7 +2084,7 @@ public virtual Task GetSettingsAsync(Elas } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) @@ -2095,7 +2095,7 @@ public virtual Task GetSettingsAsync(Canc } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -2107,7 +2107,7 @@ public virtual Task GetSettingsAsync(Acti } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2117,7 +2117,7 @@ public virtual Task GetSettingsAsync(GetIndicesSetti } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) @@ -2128,7 +2128,7 @@ public virtual Task GetSettingsAsync(Elastic.Clients } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) @@ -2140,7 +2140,7 @@ public virtual Task GetSettingsAsync(Elastic.Clients } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) @@ -2151,7 +2151,7 @@ public virtual Task GetSettingsAsync(CancellationTok } /// - /// Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
+ /// Get index settings.
Returns setting information for one or more indices. For data streams,
returns setting information for the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -2163,7 +2163,7 @@ public virtual Task GetSettingsAsync(Action - /// Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
+ /// Convert an index alias to a data stream.
Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataStreamAsync(MigrateToDataStreamRequest request, CancellationToken cancellationToken = default) @@ -2173,7 +2173,7 @@ public virtual Task MigrateToDataStreamAsync(Migrat } /// - /// Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
+ /// Convert an index alias to a data stream.
Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task MigrateToDataStreamAsync(MigrateToDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2183,7 +2183,7 @@ public virtual Task MigrateToDataStreamAsync(Migrat } /// - /// Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
+ /// Convert an index alias to a data stream.
Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task MigrateToDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName name, CancellationToken cancellationToken = default) @@ -2194,7 +2194,7 @@ public virtual Task MigrateToDataStreamAsync(Elasti } /// - /// Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
+ /// Convert an index alias to a data stream.
Converts an index alias to a data stream.
You must have a matching index template that is data stream enabled.
The alias must meet the following criteria:
The alias must have a write index;
All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;
The alias must not have any filters;
The alias must not use custom routing.
If successful, the request removes the alias and creates a data stream with the same name.
The indices for the alias become hidden backing indices for the stream.
The write index for the alias becomes the write index for the stream.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task MigrateToDataStreamAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName name, Action configureRequest, CancellationToken cancellationToken = default) @@ -2206,7 +2206,7 @@ public virtual Task MigrateToDataStreamAsync(Elasti } /// - /// Performs one or more data stream modification actions in a single atomic operation. + /// Update data streams.
Performs one or more data stream modification actions in a single atomic operation.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ModifyDataStreamAsync(ModifyDataStreamRequest request, CancellationToken cancellationToken = default) @@ -2216,7 +2216,7 @@ public virtual Task ModifyDataStreamAsync(ModifyDataSt } /// - /// Performs one or more data stream modification actions in a single atomic operation. + /// Update data streams.
Performs one or more data stream modification actions in a single atomic operation.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ModifyDataStreamAsync(ModifyDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2226,7 +2226,7 @@ public virtual Task ModifyDataStreamAsync(ModifyDataSt } /// - /// Performs one or more data stream modification actions in a single atomic operation. + /// Update data streams.
Performs one or more data stream modification actions in a single atomic operation.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ModifyDataStreamAsync(CancellationToken cancellationToken = default) @@ -2237,7 +2237,7 @@ public virtual Task ModifyDataStreamAsync(Cancellation } /// - /// Performs one or more data stream modification actions in a single atomic operation. + /// Update data streams.
Performs one or more data stream modification actions in a single atomic operation.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ModifyDataStreamAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -2348,7 +2348,7 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.S } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(PutAliasRequest request, CancellationToken cancellationToken = default) @@ -2358,7 +2358,7 @@ public virtual Task PutAliasAsync(PutAliasRequest request, Can } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(PutAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2368,7 +2368,7 @@ public virtual Task PutAliasAsync(PutAliasRequestDe } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) @@ -2379,7 +2379,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2391,7 +2391,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) @@ -2402,7 +2402,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2414,7 +2414,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(PutAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2424,7 +2424,7 @@ public virtual Task PutAliasAsync(PutAliasRequestDescriptor de } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) @@ -2435,7 +2435,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) @@ -2447,7 +2447,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc } /// - /// Update the data lifecycle of the specified data streams. + /// Update data stream lifecycles.
Update the data stream lifecycle of the specified data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequest request, CancellationToken cancellationToken = default) @@ -2457,7 +2457,7 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec } /// - /// Update the data lifecycle of the specified data streams. + /// Update data stream lifecycles.
Update the data stream lifecycle of the specified data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2467,7 +2467,7 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec } /// - /// Update the data lifecycle of the specified data streams. + /// Update data stream lifecycles.
Update the data stream lifecycle of the specified data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) @@ -2478,7 +2478,7 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie } /// - /// Update the data lifecycle of the specified data streams. + /// Update data stream lifecycles.
Update the data stream lifecycle of the specified data streams.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) @@ -2566,7 +2566,7 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(PutMappingRequest request, CancellationToken cancellationToken = default) @@ -2576,7 +2576,7 @@ public virtual Task PutMappingAsync(PutMappingRequest reques } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2586,7 +2586,7 @@ public virtual Task PutMappingAsync(PutMappingReq } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -2597,7 +2597,7 @@ public virtual Task PutMappingAsync(Elastic.Clien } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2609,7 +2609,7 @@ public virtual Task PutMappingAsync(Elastic.Clien } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(CancellationToken cancellationToken = default) @@ -2620,7 +2620,7 @@ public virtual Task PutMappingAsync(CancellationT } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -2632,7 +2632,7 @@ public virtual Task PutMappingAsync(Action - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2642,7 +2642,7 @@ public virtual Task PutMappingAsync(PutMappingRequestDescrip } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -2653,7 +2653,7 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics } /// - /// Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
+ /// Update field mappings.
Adds new fields to an existing data stream or index.
You can also use this API to change the search settings of existing fields.
For data streams, these changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -2665,7 +2665,7 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(PutIndicesSettingsRequest request, CancellationToken cancellationToken = default) @@ -2675,7 +2675,7 @@ public virtual Task PutSettingsAsync(PutIndicesSetti } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(PutIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2685,7 +2685,7 @@ public virtual Task PutSettingsAsync(PutI } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -2696,7 +2696,7 @@ public virtual Task PutSettingsAsync(Elas } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2708,7 +2708,7 @@ public virtual Task PutSettingsAsync(Elas } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, CancellationToken cancellationToken = default) @@ -2719,7 +2719,7 @@ public virtual Task PutSettingsAsync(Elas } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2731,7 +2731,7 @@ public virtual Task PutSettingsAsync(Elas } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(PutIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2741,7 +2741,7 @@ public virtual Task PutSettingsAsync(PutIndicesSetti } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -2752,7 +2752,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -2764,7 +2764,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, CancellationToken cancellationToken = default) @@ -2775,7 +2775,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients } /// - /// Changes a dynamic index setting in real time. For data streams, index setting
changes are applied to all backing indices by default.
+ /// Update index settings.
Changes dynamic index settings in real time. For data streams, index setting
changes are applied to all backing indices by default.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Action configureRequest, CancellationToken cancellationToken = default) @@ -2985,7 +2985,7 @@ public virtual Task RecoveryAsync(Action - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequest request, CancellationToken cancellationToken = default) @@ -2995,7 +2995,7 @@ public virtual Task RefreshAsync(RefreshRequest request, Cancel } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3005,7 +3005,7 @@ public virtual Task RefreshAsync(RefreshRequestDescr } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -3016,7 +3016,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Ela } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3028,7 +3028,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Ela } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(CancellationToken cancellationToken = default) @@ -3039,7 +3039,7 @@ public virtual Task RefreshAsync(CancellationToken c } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -3051,7 +3051,7 @@ public virtual Task RefreshAsync(Action - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3061,7 +3061,7 @@ public virtual Task RefreshAsync(RefreshRequestDescriptor descr } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -3072,7 +3072,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch. } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -3084,7 +3084,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch. } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(CancellationToken cancellationToken = default) @@ -3095,7 +3095,7 @@ public virtual Task RefreshAsync(CancellationToken cancellation } /// - /// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+ /// Refresh an index.
A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -3150,7 +3150,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) @@ -3160,7 +3160,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3170,7 +3170,7 @@ public virtual Task RolloverAsync(RolloverRequestDe } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex, CancellationToken cancellationToken = default) @@ -3181,7 +3181,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3193,7 +3193,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) @@ -3204,7 +3204,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3216,7 +3216,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3226,7 +3226,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex, CancellationToken cancellationToken = default) @@ -3237,7 +3237,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex, Action configureRequest, CancellationToken cancellationToken = default) @@ -3249,7 +3249,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) @@ -3260,7 +3260,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc } /// - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index.
Creates a new index for a data stream or index alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) @@ -3681,7 +3681,7 @@ public virtual Task StatsAsync(Action - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(UpdateAliasesRequest request, CancellationToken cancellationToken = default) @@ -3691,7 +3691,7 @@ public virtual Task UpdateAliasesAsync(UpdateAliasesReque } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateAliasesAsync(UpdateAliasesRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3701,7 +3701,7 @@ public virtual Task UpdateAliasesAsync(UpdateA } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateAliasesAsync(CancellationToken cancellationToken = default) @@ -3712,7 +3712,7 @@ public virtual Task UpdateAliasesAsync(Cancell } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateAliasesAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -3724,7 +3724,7 @@ public virtual Task UpdateAliasesAsync(Action< } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateAliasesAsync(UpdateAliasesRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3734,7 +3734,7 @@ public virtual Task UpdateAliasesAsync(UpdateAliasesReque } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateAliasesAsync(CancellationToken cancellationToken = default) @@ -3745,7 +3745,7 @@ public virtual Task UpdateAliasesAsync(CancellationToken } /// - /// Adds a data stream or index to an alias. + /// Create or update an alias.
Adds a data stream or index to an alias.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateAliasesAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -3757,7 +3757,7 @@ public virtual Task UpdateAliasesAsync(Action - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(ValidateQueryRequest request, CancellationToken cancellationToken = default) @@ -3767,7 +3767,7 @@ public virtual Task ValidateQueryAsync(ValidateQueryReque } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(ValidateQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3777,7 +3777,7 @@ public virtual Task ValidateQueryAsync(Validat } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -3788,7 +3788,7 @@ public virtual Task ValidateQueryAsync(Elastic } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3800,7 +3800,7 @@ public virtual Task ValidateQueryAsync(Elastic } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(CancellationToken cancellationToken = default) @@ -3811,7 +3811,7 @@ public virtual Task ValidateQueryAsync(Cancell } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -3823,7 +3823,7 @@ public virtual Task ValidateQueryAsync(Action< } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(ValidateQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3833,7 +3833,7 @@ public virtual Task ValidateQueryAsync(ValidateQueryReque } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) @@ -3844,7 +3844,7 @@ public virtual Task ValidateQueryAsync(Elastic.Clients.El } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -3856,7 +3856,7 @@ public virtual Task ValidateQueryAsync(Elastic.Clients.El } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(CancellationToken cancellationToken = default) @@ -3867,7 +3867,7 @@ public virtual Task ValidateQueryAsync(CancellationToken } /// - /// Validates a potentially expensive query without executing it. + /// Validate a query.
Validates a query without running it.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ValidateQueryAsync(Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs index 771267082c1..4efb755b1be 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs @@ -38,7 +38,7 @@ internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(cl } /// - /// This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
+ /// Get license information.
Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires.
For more information about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(GetLicenseRequest request, CancellationToken cancellationToken = default) @@ -48,7 +48,7 @@ public virtual Task GetAsync(GetLicenseRequest request, Canc } /// - /// This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
+ /// Get license information.
Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires.
For more information about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(GetLicenseRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -58,7 +58,7 @@ public virtual Task GetAsync(GetLicenseRequestDescriptor des } /// - /// This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
+ /// Get license information.
Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires.
For more information about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(CancellationToken cancellationToken = default) @@ -69,7 +69,7 @@ public virtual Task GetAsync(CancellationToken cancellationT } /// - /// This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
+ /// Get license information.
Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires.
For more information about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs index 217597b1ee7..15559c8d596 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -81,7 +81,7 @@ public virtual Task ClearTrainedModelD } /// - /// Close anomaly detection jobs
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
+ /// Close anomaly detection jobs.
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CloseJobAsync(CloseJobRequest request, CancellationToken cancellationToken = default) @@ -91,7 +91,7 @@ public virtual Task CloseJobAsync(CloseJobRequest request, Can } /// - /// Close anomaly detection jobs
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
+ /// Close anomaly detection jobs.
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CloseJobAsync(CloseJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -101,7 +101,7 @@ public virtual Task CloseJobAsync(CloseJobRequestDescriptor de } /// - /// Close anomaly detection jobs
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
+ /// Close anomaly detection jobs.
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) @@ -112,7 +112,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc } /// - /// Close anomaly detection jobs
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
+ /// Close anomaly detection jobs.
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
When a datafeed that has a specified end date stops, it automatically closes its associated job.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) @@ -547,8 +547,7 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. } /// - /// Deletes an anomaly detection job. - /// All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
+ /// Delete an anomaly detection job.
All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken = default) @@ -558,8 +557,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequest request, } /// - /// Deletes an anomaly detection job. - /// All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
+ /// Delete an anomaly detection job.
All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -569,8 +567,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor } /// - /// Deletes an anomaly detection job. - /// All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
+ /// Delete an anomaly detection job.
All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) @@ -581,8 +578,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea } /// - /// Deletes an anomaly detection job. - /// All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
+ /// Delete an anomaly detection job.
All job configuration, model state and results are deleted.
It is not currently possible to delete multiple jobs using wildcards or a
comma separated list. If you delete a job that has a datafeed, the request
first tries to delete the datafeed. This behavior is equivalent to calling
the delete datafeed API with the same timeout and force parameters as the
delete job request.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) @@ -2639,7 +2635,7 @@ public virtual Task InfoAsync(Action co } /// - /// Opens one or more anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
+ /// Open anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task OpenJobAsync(OpenJobRequest request, CancellationToken cancellationToken = default) @@ -2649,7 +2645,7 @@ public virtual Task OpenJobAsync(OpenJobRequest request, Cancel } /// - /// Opens one or more anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
+ /// Open anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task OpenJobAsync(OpenJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2659,7 +2655,7 @@ public virtual Task OpenJobAsync(OpenJobRequestDescriptor descr } /// - /// Opens one or more anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
+ /// Open anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) @@ -2670,7 +2666,7 @@ public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch. } /// - /// Opens one or more anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
+ /// Open anomaly detection jobs.
An anomaly detection job must be opened in order for it to be ready to
receive and analyze data. It can be opened and closed multiple times
throughout its lifecycle.
When you open a new job, it starts with an empty model.
When you open an existing job, the most recent model state is automatically
loaded. The job is ready to resume its analysis from where it left off, once
new data is received.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) @@ -3128,7 +3124,7 @@ public virtual Task PutFilterAsync(Elastic.Clients.Elasticsea } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(PutJobRequest request, CancellationToken cancellationToken = default) @@ -3138,7 +3134,7 @@ public virtual Task PutJobAsync(PutJobRequest request, Cancellat } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3148,7 +3144,7 @@ public virtual Task PutJobAsync(PutJobRequestDescript } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) @@ -3159,7 +3155,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3171,7 +3167,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3181,7 +3177,7 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) @@ -3192,7 +3188,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Instantiates an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. + /// Create an anomaly detection job.
If you include a `datafeed_config`, you must have read index privileges on the source index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs index 52a921d8a9e..12cabff5949 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs @@ -38,7 +38,7 @@ internal TransformManagementNamespacedClient(ElasticsearchClient client) : base( } /// - /// Deletes a transform. + /// Delete a transform.
Deletes a transform.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteTransformAsync(DeleteTransformRequest request, CancellationToken cancellationToken = default) @@ -48,7 +48,7 @@ public virtual Task DeleteTransformAsync(DeleteTransfor } /// - /// Deletes a transform. + /// Delete a transform.
Deletes a transform.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteTransformAsync(DeleteTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -58,7 +58,7 @@ public virtual Task DeleteTransformAsync(DeleteTransfor } /// - /// Deletes a transform. + /// Delete a transform.
Deletes a transform.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) @@ -69,7 +69,7 @@ public virtual Task DeleteTransformAsync(Elastic.Client } /// - /// Deletes a transform. + /// Delete a transform.
Deletes a transform.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) @@ -81,7 +81,7 @@ public virtual Task DeleteTransformAsync(Elastic.Client } /// - /// Retrieves configuration information for transforms. + /// Get transforms.
Retrieves configuration information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformAsync(GetTransformRequest request, CancellationToken cancellationToken = default) @@ -91,7 +91,7 @@ public virtual Task GetTransformAsync(GetTransformRequest } /// - /// Retrieves configuration information for transforms. + /// Get transforms.
Retrieves configuration information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformAsync(GetTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -101,7 +101,7 @@ public virtual Task GetTransformAsync(GetTransformRequestD } /// - /// Retrieves configuration information for transforms. + /// Get transforms.
Retrieves configuration information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Names? transformId, CancellationToken cancellationToken = default) @@ -112,7 +112,7 @@ public virtual Task GetTransformAsync(Elastic.Clients.Elas } /// - /// Retrieves configuration information for transforms. + /// Get transforms.
Retrieves configuration information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Names? transformId, Action configureRequest, CancellationToken cancellationToken = default) @@ -124,7 +124,7 @@ public virtual Task GetTransformAsync(Elastic.Clients.Elas } /// - /// Retrieves configuration information for transforms. + /// Get transforms.
Retrieves configuration information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformAsync(CancellationToken cancellationToken = default) @@ -135,7 +135,7 @@ public virtual Task GetTransformAsync(CancellationToken ca } /// - /// Retrieves configuration information for transforms. + /// Get transforms.
Retrieves configuration information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -147,7 +147,7 @@ public virtual Task GetTransformAsync(Action - /// Retrieves usage information for transforms. + /// Get transform stats.
Retrieves usage information for transforms.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformStatsAsync(GetTransformStatsRequest request, CancellationToken cancellationToken = default) @@ -157,7 +157,7 @@ public virtual Task GetTransformStatsAsync(GetTransfo } /// - /// Retrieves usage information for transforms. + /// Get transform stats.
Retrieves usage information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformStatsAsync(GetTransformStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -167,7 +167,7 @@ public virtual Task GetTransformStatsAsync(GetTransfo } /// - /// Retrieves usage information for transforms. + /// Get transform stats.
Retrieves usage information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Names transformId, CancellationToken cancellationToken = default) @@ -178,7 +178,7 @@ public virtual Task GetTransformStatsAsync(Elastic.Cl } /// - /// Retrieves usage information for transforms. + /// Get transform stats.
Retrieves usage information for transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetTransformStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Names transformId, Action configureRequest, CancellationToken cancellationToken = default) @@ -190,7 +190,7 @@ public virtual Task GetTransformStatsAsync(Elastic.Cl } /// - /// Previews a transform. + /// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -201,7 +201,7 @@ public virtual Task> PreviewTransformAsync< } /// - /// Previews a transform. + /// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -212,7 +212,7 @@ public virtual Task> PreviewTransformAsync< } /// - /// Previews a transform. + /// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -224,7 +224,7 @@ public virtual Task> PreviewTransformAsync< } /// - /// Previews a transform. + /// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -237,7 +237,7 @@ public virtual Task> PreviewTransformAsync< } /// - /// Previews a transform. + /// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -249,7 +249,7 @@ public virtual Task> PreviewTransformAsync< } /// - /// Previews a transform. + /// Preview a transform.
Generates a preview of the results that you will get when you create a transform with the same configuration.
/// It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
generates a list of mappings and settings for the destination index. These values are determined based on the field
types of the source index and the transform aggregations.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -262,7 +262,7 @@ public virtual Task> PreviewTransformAsync< } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -276,7 +276,7 @@ public virtual Task PutTransformAsync(PutTransformRequest } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -290,7 +290,7 @@ public virtual Task PutTransformAsync(PutTransf } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -305,7 +305,7 @@ public virtual Task PutTransformAsync(Elastic.C } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -321,7 +321,7 @@ public virtual Task PutTransformAsync(Elastic.C } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -335,7 +335,7 @@ public virtual Task PutTransformAsync(PutTransformRequestD } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -350,7 +350,7 @@ public virtual Task PutTransformAsync(Elastic.Clients.Elas } /// - /// Creates a transform. + /// Create a transform.
Creates a transform.
/// A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
unique row per entity.
/// You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in
the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values
in the latest object.
/// You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and
`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the
transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
those roles do not have the required privileges on the source and destination indices, the transform fails when it
attempts unauthorized operations.
@@ -366,7 +366,7 @@ public virtual Task PutTransformAsync(Elastic.Clients.Elas } /// - /// Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
+ /// Reset a transform.
Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ResetTransformAsync(ResetTransformRequest request, CancellationToken cancellationToken = default) @@ -376,7 +376,7 @@ public virtual Task ResetTransformAsync(ResetTransformRe } /// - /// Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
+ /// Reset a transform.
Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ResetTransformAsync(ResetTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -386,7 +386,7 @@ public virtual Task ResetTransformAsync(ResetTransformRe } /// - /// Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
+ /// Reset a transform.
Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ResetTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) @@ -397,7 +397,7 @@ public virtual Task ResetTransformAsync(Elastic.Clients. } /// - /// Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
+ /// Reset a transform.
Resets a transform.
Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
If the destination index was created by the transform, it is deleted.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ResetTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) @@ -409,7 +409,7 @@ public virtual Task ResetTransformAsync(Elastic.Clients. } /// - /// Schedules now a transform. + /// Schedule a transform to start now.
Instantly runs a transform to process data.
/// If you _schedule_now a transform, it will process the new data instantly,
without waiting for the configured frequency interval. After _schedule_now API is called,
the transform will be processed again at now + frequency unless _schedule_now API
is called again in the meantime.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -420,7 +420,7 @@ public virtual Task ScheduleNowTransformAsync(Sche } /// - /// Schedules now a transform. + /// Schedule a transform to start now.
Instantly runs a transform to process data.
/// If you _schedule_now a transform, it will process the new data instantly,
without waiting for the configured frequency interval. After _schedule_now API is called,
the transform will be processed again at now + frequency unless _schedule_now API
is called again in the meantime.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -431,7 +431,7 @@ public virtual Task ScheduleNowTransformAsync(Sche } /// - /// Schedules now a transform. + /// Schedule a transform to start now.
Instantly runs a transform to process data.
/// If you _schedule_now a transform, it will process the new data instantly,
without waiting for the configured frequency interval. After _schedule_now API is called,
the transform will be processed again at now + frequency unless _schedule_now API
is called again in the meantime.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -443,7 +443,7 @@ public virtual Task ScheduleNowTransformAsync(Elas } /// - /// Schedules now a transform. + /// Schedule a transform to start now.
Instantly runs a transform to process data.
/// If you _schedule_now a transform, it will process the new data instantly,
without waiting for the configured frequency interval. After _schedule_now API is called,
the transform will be processed again at now + frequency unless _schedule_now API
is called again in the meantime.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -456,7 +456,7 @@ public virtual Task ScheduleNowTransformAsync(Elas } /// - /// Starts a transform. + /// Start a transform.
Starts a transform.
/// When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping
definitions for the destination index from the source indices and the transform aggregations. If fields in the
destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),
the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
in a pivot transform.
/// When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
created the transform, they occur when you start the transform—​with the exception of privilege checks. When
Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
time of creation and uses those same roles. If those roles do not have the required privileges on the source and
destination indices, the transform fails when it attempts unauthorized operations.
/// Learn more about this API in the Elasticsearch documentation. @@ -468,7 +468,7 @@ public virtual Task StartTransformAsync(StartTransformRe } /// - /// Starts a transform. + /// Start a transform.
Starts a transform.
/// When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping
definitions for the destination index from the source indices and the transform aggregations. If fields in the
destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),
the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
in a pivot transform.
/// When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
created the transform, they occur when you start the transform—​with the exception of privilege checks. When
Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
time of creation and uses those same roles. If those roles do not have the required privileges on the source and
destination indices, the transform fails when it attempts unauthorized operations.
/// Learn more about this API in the Elasticsearch documentation. @@ -480,7 +480,7 @@ public virtual Task StartTransformAsync(StartTransformRe } /// - /// Starts a transform. + /// Start a transform.
Starts a transform.
/// When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping
definitions for the destination index from the source indices and the transform aggregations. If fields in the
destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),
the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
in a pivot transform.
/// When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
created the transform, they occur when you start the transform—​with the exception of privilege checks. When
Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
time of creation and uses those same roles. If those roles do not have the required privileges on the source and
destination indices, the transform fails when it attempts unauthorized operations.
/// Learn more about this API in the Elasticsearch documentation. @@ -493,7 +493,7 @@ public virtual Task StartTransformAsync(Elastic.Clients. } /// - /// Starts a transform. + /// Start a transform.
Starts a transform.
/// When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping
definitions for the destination index from the source indices and the transform aggregations. If fields in the
destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),
the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
in a pivot transform.
/// When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
created the transform, they occur when you start the transform—​with the exception of privilege checks. When
Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
time of creation and uses those same roles. If those roles do not have the required privileges on the source and
destination indices, the transform fails when it attempts unauthorized operations.
/// Learn more about this API in the Elasticsearch documentation. @@ -507,7 +507,7 @@ public virtual Task StartTransformAsync(Elastic.Clients. } /// - /// Stops one or more transforms. + /// Stop transforms.
Stops one or more transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StopTransformAsync(StopTransformRequest request, CancellationToken cancellationToken = default) @@ -517,7 +517,7 @@ public virtual Task StopTransformAsync(StopTransformReque } /// - /// Stops one or more transforms. + /// Stop transforms.
Stops one or more transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StopTransformAsync(StopTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -527,7 +527,7 @@ public virtual Task StopTransformAsync(StopTransformReque } /// - /// Stops one or more transforms. + /// Stop transforms.
Stops one or more transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StopTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Name transformId, CancellationToken cancellationToken = default) @@ -538,7 +538,7 @@ public virtual Task StopTransformAsync(Elastic.Clients.El } /// - /// Stops one or more transforms. + /// Stop transforms.
Stops one or more transforms.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task StopTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Name transformId, Action configureRequest, CancellationToken cancellationToken = default) @@ -550,7 +550,7 @@ public virtual Task StopTransformAsync(Elastic.Clients.El } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -561,7 +561,7 @@ public virtual Task UpdateTransformAsync(UpdateTransfor } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -572,7 +572,7 @@ public virtual Task UpdateTransformAsync(Upd } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -584,7 +584,7 @@ public virtual Task UpdateTransformAsync(Ela } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -597,7 +597,7 @@ public virtual Task UpdateTransformAsync(Ela } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -608,7 +608,7 @@ public virtual Task UpdateTransformAsync(UpdateTransfor } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
@@ -620,7 +620,7 @@ public virtual Task UpdateTransformAsync(Elastic.Client } /// - /// Updates certain properties of a transform. + /// Update a transform.
Updates certain properties of a transform.
/// All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`
privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When
Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
time of update and runs with those privileges.
/// Learn more about this API in the Elasticsearch documentation. ///
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 fb87956944f..ebb79accae4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Cluster; using Elastic.Clients.Elasticsearch.Serverless.Enrich; using Elastic.Clients.Elasticsearch.Serverless.Eql; +using Elastic.Clients.Elasticsearch.Serverless.Esql; using Elastic.Clients.Elasticsearch.Serverless.Graph; using Elastic.Clients.Elasticsearch.Serverless.IndexManagement; using Elastic.Clients.Elasticsearch.Serverless.Ingest; @@ -48,6 +49,7 @@ public partial class ElasticsearchClient public virtual ClusterNamespacedClient Cluster { get; private set; } public virtual EnrichNamespacedClient Enrich { get; private set; } public virtual EqlNamespacedClient Eql { get; private set; } + public virtual EsqlNamespacedClient Esql { get; private set; } public virtual GraphNamespacedClient Graph { get; private set; } public virtual IndicesNamespacedClient Indices { get; private set; } public virtual IngestNamespacedClient Ingest { get; private set; } @@ -69,6 +71,7 @@ private partial void SetupNamespaces() Cluster = new ClusterNamespacedClient(this); Enrich = new EnrichNamespacedClient(this); Eql = new EqlNamespacedClient(this); + Esql = new EsqlNamespacedClient(this); Graph = new GraphNamespacedClient(this); Indices = new IndicesNamespacedClient(this); Ingest = new IngestNamespacedClient(this); @@ -86,7 +89,7 @@ private partial void SetupNamespaces() } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) @@ -96,7 +99,7 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -106,7 +109,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) @@ -117,7 +120,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticse } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -129,7 +132,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticse } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(CancellationToken cancellationToken = default) @@ -140,7 +143,7 @@ public virtual Task BulkAsync(CancellationToken cancell } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -152,7 +155,7 @@ public virtual Task BulkAsync(Action - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -162,7 +165,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor descriptor, Ca } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) @@ -173,7 +176,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Server } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) @@ -185,7 +188,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Server } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(CancellationToken cancellationToken = default) @@ -196,7 +199,7 @@ public virtual Task BulkAsync(CancellationToken cancellationToken } /// - /// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
+ /// Bulk index or delete documents.
Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -416,7 +419,7 @@ public virtual Task CountAsync(Action con } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(CreateRequest request, CancellationToken cancellationToken = default) @@ -426,7 +429,7 @@ public virtual Task CreateAsync(CreateRequest - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(CreateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -436,7 +439,7 @@ public virtual Task CreateAsync(CreateRequestDescript } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -447,7 +450,7 @@ public virtual Task CreateAsync(TDocument document, E } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -459,7 +462,7 @@ public virtual Task CreateAsync(TDocument document, E } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, CancellationToken cancellationToken = default) @@ -470,7 +473,7 @@ public virtual Task CreateAsync(TDocument document, C } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -482,7 +485,7 @@ public virtual Task CreateAsync(TDocument document, A } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -493,7 +496,7 @@ public virtual Task CreateAsync(TDocument document, E } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -505,7 +508,7 @@ public virtual Task CreateAsync(TDocument document, E } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -516,7 +519,7 @@ public virtual Task CreateAsync(TDocument document, E } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -528,7 +531,7 @@ public virtual Task CreateAsync(TDocument document, E } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(DeleteRequest request, CancellationToken cancellationToken = default) @@ -538,7 +541,7 @@ public virtual Task DeleteAsync(DeleteRequest request, Cancellat } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -548,7 +551,7 @@ public virtual Task DeleteAsync(DeleteRequestDescript } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -559,7 +562,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -571,7 +574,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(TDocument document, CancellationToken cancellationToken = default) @@ -582,7 +585,7 @@ public virtual Task DeleteAsync(TDocument document, C } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -594,7 +597,7 @@ public virtual Task DeleteAsync(TDocument document, A } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -605,7 +608,7 @@ public virtual Task DeleteAsync(TDocument document, E } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -617,7 +620,7 @@ public virtual Task DeleteAsync(TDocument document, E } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -628,7 +631,7 @@ public virtual Task DeleteAsync(TDocument document, E } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -640,7 +643,7 @@ public virtual Task DeleteAsync(TDocument document, E } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -651,7 +654,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -663,7 +666,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -673,7 +676,7 @@ public virtual Task DeleteAsync(DeleteRequestDescriptor descript } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -684,7 +687,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Removes a JSON document from the specified index. + /// Delete a document.
Removes a JSON document from the specified index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -696,7 +699,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(DeleteByQueryRequest request, CancellationToken cancellationToken = default) @@ -706,7 +709,7 @@ public virtual Task DeleteByQueryAsync(DeleteByQueryReque } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -716,7 +719,7 @@ public virtual Task DeleteByQueryAsync(DeleteB } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -727,7 +730,7 @@ public virtual Task DeleteByQueryAsync(Elastic } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -739,7 +742,7 @@ public virtual Task DeleteByQueryAsync(Elastic } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(CancellationToken cancellationToken = default) @@ -750,7 +753,7 @@ public virtual Task DeleteByQueryAsync(Cancell } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -762,7 +765,7 @@ public virtual Task DeleteByQueryAsync(Action< } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -772,7 +775,7 @@ public virtual Task DeleteByQueryAsync(DeleteByQueryReque } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -783,7 +786,7 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El } /// - /// Deletes documents that match the specified query. + /// Delete documents.
Deletes documents that match the specified query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -838,7 +841,7 @@ public virtual Task DeleteByQueryRethrottleAsyn } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(DeleteScriptRequest request, CancellationToken cancellationToken = default) @@ -848,7 +851,7 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequest } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -858,7 +861,7 @@ public virtual Task DeleteScriptAsync(DeleteScr } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -869,7 +872,7 @@ public virtual Task DeleteScriptAsync(Elastic.C } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -881,7 +884,7 @@ public virtual Task DeleteScriptAsync(Elastic.C } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -891,7 +894,7 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequestD } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -902,7 +905,7 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas } /// - /// Deletes a stored script or search template. + /// Delete a script or search template.
Deletes a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -914,7 +917,7 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) @@ -924,7 +927,7 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -934,7 +937,7 @@ public virtual Task ExistsAsync(ExistsRequestDescript } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -945,7 +948,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -957,7 +960,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(TDocument document, CancellationToken cancellationToken = default) @@ -968,7 +971,7 @@ public virtual Task ExistsAsync(TDocument document, C } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -980,7 +983,7 @@ public virtual Task ExistsAsync(TDocument document, A } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -991,7 +994,7 @@ public virtual Task ExistsAsync(TDocument document, E } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1003,7 +1006,7 @@ public virtual Task ExistsAsync(TDocument document, E } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1014,7 +1017,7 @@ public virtual Task ExistsAsync(TDocument document, E } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1026,7 +1029,7 @@ public virtual Task ExistsAsync(TDocument document, E } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1037,7 +1040,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1049,7 +1052,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1059,7 +1062,7 @@ public virtual Task ExistsAsync(ExistsRequestDescriptor descript } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1070,7 +1073,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Checks if a document in an index exists. + /// Check a document.
Checks if a specified document exists.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -1082,7 +1085,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Se } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(ExistsSourceRequest request, CancellationToken cancellationToken = default) @@ -1092,7 +1095,7 @@ public virtual Task ExistsSourceAsync(ExistsSourceRequest } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1102,7 +1105,7 @@ public virtual Task ExistsSourceAsync(ExistsSou } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1113,7 +1116,7 @@ public virtual Task ExistsSourceAsync(Elastic.C } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1125,7 +1128,7 @@ public virtual Task ExistsSourceAsync(Elastic.C } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(TDocument document, CancellationToken cancellationToken = default) @@ -1136,7 +1139,7 @@ public virtual Task ExistsSourceAsync(TDocument } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1148,7 +1151,7 @@ public virtual Task ExistsSourceAsync(TDocument } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -1159,7 +1162,7 @@ public virtual Task ExistsSourceAsync(TDocument } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1171,7 +1174,7 @@ public virtual Task ExistsSourceAsync(TDocument } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1182,7 +1185,7 @@ public virtual Task ExistsSourceAsync(TDocument } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1194,7 +1197,7 @@ public virtual Task ExistsSourceAsync(TDocument } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1205,7 +1208,7 @@ public virtual Task ExistsSourceAsync(Elastic.C } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1217,7 +1220,7 @@ public virtual Task ExistsSourceAsync(Elastic.C } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1227,7 +1230,7 @@ public virtual Task ExistsSourceAsync(ExistsSourceRequestD } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1238,7 +1241,7 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas } /// - /// Checks if a document's `_source` is stored. + /// Check for a document source.
Checks if a document's `_source` is stored.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -1250,7 +1253,7 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(ExplainRequest request, CancellationToken cancellationToken = default) @@ -1260,7 +1263,7 @@ public virtual Task> ExplainAsync(ExplainR } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(ExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1270,7 +1273,7 @@ public virtual Task> ExplainAsync(ExplainR } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1281,7 +1284,7 @@ public virtual Task> ExplainAsync(Elastic. } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1293,7 +1296,7 @@ public virtual Task> ExplainAsync(Elastic. } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(TDocument document, CancellationToken cancellationToken = default) @@ -1304,7 +1307,7 @@ public virtual Task> ExplainAsync(TDocumen } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1316,7 +1319,7 @@ public virtual Task> ExplainAsync(TDocumen } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -1327,7 +1330,7 @@ public virtual Task> ExplainAsync(TDocumen } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1339,7 +1342,7 @@ public virtual Task> ExplainAsync(TDocumen } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1350,7 +1353,7 @@ public virtual Task> ExplainAsync(TDocumen } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1362,7 +1365,7 @@ public virtual Task> ExplainAsync(TDocumen } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1373,7 +1376,7 @@ public virtual Task> ExplainAsync(Elastic. } /// - /// Returns information about why a specific document matches (or doesn’t match) a query. + /// Explain a document match result.
Returns information about why a specific document matches, or doesn’t match, a query.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1507,7 +1510,7 @@ public virtual Task FieldCapsAsync(Action - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(GetRequest request, CancellationToken cancellationToken = default) @@ -1517,7 +1520,7 @@ public virtual Task> GetAsync(GetRequest reque } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(GetRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1527,7 +1530,7 @@ public virtual Task> GetAsync(GetRequestDescri } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1538,7 +1541,7 @@ public virtual Task> GetAsync(Elastic.Clients. } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1550,7 +1553,7 @@ public virtual Task> GetAsync(Elastic.Clients. } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(TDocument document, CancellationToken cancellationToken = default) @@ -1561,7 +1564,7 @@ public virtual Task> GetAsync(TDocument docume } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1573,7 +1576,7 @@ public virtual Task> GetAsync(TDocument docume } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -1584,7 +1587,7 @@ public virtual Task> GetAsync(TDocument docume } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1596,7 +1599,7 @@ public virtual Task> GetAsync(TDocument docume } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1607,7 +1610,7 @@ public virtual Task> GetAsync(TDocument docume } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1619,7 +1622,7 @@ public virtual Task> GetAsync(TDocument docume } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1630,7 +1633,7 @@ public virtual Task> GetAsync(Elastic.Clients. } /// - /// Returns a document. + /// Get a document by its ID.
Retrieves the document with the specified ID from an index.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1642,7 +1645,7 @@ public virtual Task> GetAsync(Elastic.Clients. } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(GetScriptRequest request, CancellationToken cancellationToken = default) @@ -1652,7 +1655,7 @@ public virtual Task GetScriptAsync(GetScriptRequest request, } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1662,7 +1665,7 @@ public virtual Task GetScriptAsync(GetScriptReques } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1673,7 +1676,7 @@ public virtual Task GetScriptAsync(Elastic.Clients } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1685,7 +1688,7 @@ public virtual Task GetScriptAsync(Elastic.Clients } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1695,7 +1698,7 @@ public virtual Task GetScriptAsync(GetScriptRequestDescriptor } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1706,7 +1709,7 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea } /// - /// Retrieves a stored script or search template. + /// Get a script or search template.
Retrieves a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -1718,7 +1721,7 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken = default) @@ -1728,7 +1731,7 @@ public virtual Task> GetSourceAsync(GetS } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(GetSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1738,7 +1741,7 @@ public virtual Task> GetSourceAsync(GetS } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1749,7 +1752,7 @@ public virtual Task> GetSourceAsync(Elas } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1761,7 +1764,7 @@ public virtual Task> GetSourceAsync(Elas } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(TDocument document, CancellationToken cancellationToken = default) @@ -1772,7 +1775,7 @@ public virtual Task> GetSourceAsync(TDoc } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1784,7 +1787,7 @@ public virtual Task> GetSourceAsync(TDoc } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -1795,7 +1798,7 @@ public virtual Task> GetSourceAsync(TDoc } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1807,7 +1810,7 @@ public virtual Task> GetSourceAsync(TDoc } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1818,7 +1821,7 @@ public virtual Task> GetSourceAsync(TDoc } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1830,7 +1833,7 @@ public virtual Task> GetSourceAsync(TDoc } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -1841,7 +1844,7 @@ public virtual Task> GetSourceAsync(Elas } /// - /// Returns the source of a document. + /// Get a document's source.
Returns the source of a document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1919,7 +1922,7 @@ public virtual Task HealthReportAsync(Action - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(IndexRequest request, CancellationToken cancellationToken = default) @@ -1929,7 +1932,7 @@ public virtual Task IndexAsync(IndexRequest } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(IndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1939,7 +1942,7 @@ public virtual Task IndexAsync(IndexRequestDescriptor< } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) @@ -1950,7 +1953,7 @@ public virtual Task IndexAsync(TDocument document, Ela } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1962,7 +1965,7 @@ public virtual Task IndexAsync(TDocument document, Ela } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, CancellationToken cancellationToken = default) @@ -1973,7 +1976,7 @@ public virtual Task IndexAsync(TDocument document, Can } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1985,7 +1988,7 @@ public virtual Task IndexAsync(TDocument document, Act } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -1996,7 +1999,7 @@ public virtual Task IndexAsync(TDocument document, Ela } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2008,7 +2011,7 @@ public virtual Task IndexAsync(TDocument document, Ela } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) @@ -2019,7 +2022,7 @@ public virtual Task IndexAsync(TDocument document, Ela } /// - /// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
+ /// Index a document.
Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2031,7 +2034,7 @@ public virtual Task IndexAsync(TDocument document, Ela } /// - /// Returns basic information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(InfoRequest request, CancellationToken cancellationToken = default) @@ -2041,7 +2044,7 @@ public virtual Task InfoAsync(InfoRequest request, CancellationTok } /// - /// Returns basic information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(InfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2051,7 +2054,7 @@ public virtual Task InfoAsync(InfoRequestDescriptor descriptor, Ca } /// - /// Returns basic information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(CancellationToken cancellationToken = default) @@ -2062,7 +2065,7 @@ public virtual Task InfoAsync(CancellationToken cancellationToken } /// - /// Returns basic information about the cluster. + /// Get cluster info.
Returns basic information about the cluster.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -2493,7 +2496,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client } /// - /// Returns whether the cluster is running. + /// Ping the cluster.
Returns whether the cluster is running.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PingAsync(PingRequest request, CancellationToken cancellationToken = default) @@ -2503,7 +2506,7 @@ public virtual Task PingAsync(PingRequest request, CancellationTok } /// - /// Returns whether the cluster is running. + /// Ping the cluster.
Returns whether the cluster is running.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PingAsync(PingRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2513,7 +2516,7 @@ public virtual Task PingAsync(PingRequestDescriptor descriptor, Ca } /// - /// Returns whether the cluster is running. + /// Ping the cluster.
Returns whether the cluster is running.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PingAsync(CancellationToken cancellationToken = default) @@ -2524,7 +2527,7 @@ public virtual Task PingAsync(CancellationToken cancellationToken } /// - /// Returns whether the cluster is running. + /// Ping the cluster.
Returns whether the cluster is running.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PingAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -2536,7 +2539,7 @@ public virtual Task PingAsync(Action config } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(PutScriptRequest request, CancellationToken cancellationToken = default) @@ -2546,7 +2549,7 @@ public virtual Task PutScriptAsync(PutScriptRequest request, } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2556,7 +2559,7 @@ public virtual Task PutScriptAsync(PutScriptReques } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, CancellationToken cancellationToken = default) @@ -2567,7 +2570,7 @@ public virtual Task PutScriptAsync(Elastic.Clients } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2579,7 +2582,7 @@ public virtual Task PutScriptAsync(Elastic.Clients } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -2590,7 +2593,7 @@ public virtual Task PutScriptAsync(Elastic.Clients } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2602,7 +2605,7 @@ public virtual Task PutScriptAsync(Elastic.Clients } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2612,7 +2615,7 @@ public virtual Task PutScriptAsync(PutScriptRequestDescriptor } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, CancellationToken cancellationToken = default) @@ -2623,7 +2626,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context, Action configureRequest, CancellationToken cancellationToken = default) @@ -2635,7 +2638,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -2646,7 +2649,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea } /// - /// Creates or updates a stored script or search template. + /// Create or update a script or search template.
Creates or updates a stored script or search template.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -2780,7 +2783,7 @@ public virtual Task RankEvalAsync(Action - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(ReindexRequest request, CancellationToken cancellationToken = default) @@ -2790,7 +2793,7 @@ public virtual Task ReindexAsync(ReindexRequest request, Cancel } /// - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2800,7 +2803,7 @@ public virtual Task ReindexAsync(ReindexRequestDescr } /// - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(CancellationToken cancellationToken = default) @@ -2811,7 +2814,7 @@ public virtual Task ReindexAsync(CancellationToken c } /// - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -2823,7 +2826,7 @@ public virtual Task ReindexAsync(Action - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2833,7 +2836,7 @@ public virtual Task ReindexAsync(ReindexRequestDescriptor descr } /// - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(CancellationToken cancellationToken = default) @@ -2844,7 +2847,7 @@ public virtual Task ReindexAsync(CancellationToken cancellation } /// - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Reindex documents.
Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ReindexAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -3097,7 +3100,7 @@ public virtual Task> SearchAsync(Action - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(SearchMvtRequest request, CancellationToken cancellationToken = default) @@ -3107,7 +3110,7 @@ public virtual Task SearchMvtAsync(SearchMvtRequest request, } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3117,7 +3120,7 @@ public virtual Task SearchMvtAsync(SearchMvtReques } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) @@ -3128,7 +3131,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3140,7 +3143,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) @@ -3151,7 +3154,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3163,7 +3166,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3173,7 +3176,7 @@ public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) @@ -3184,7 +3187,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea } /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. + /// Search a vector tile.
Searches a vector tile for geospatial values.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y, Action configureRequest, CancellationToken cancellationToken = default) @@ -3361,7 +3364,7 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TermVectorsRequest request, CancellationToken cancellationToken = default) @@ -3371,7 +3374,7 @@ public virtual Task TermvectorsAsync(TermVectors } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3381,7 +3384,7 @@ public virtual Task TermvectorsAsync(TermVectors } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) @@ -3392,7 +3395,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3404,7 +3407,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -3415,7 +3418,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3427,7 +3430,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TDocument document, CancellationToken cancellationToken = default) @@ -3438,7 +3441,7 @@ public virtual Task TermvectorsAsync(TDocument d } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3450,7 +3453,7 @@ public virtual Task TermvectorsAsync(TDocument d } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -3461,7 +3464,7 @@ public virtual Task TermvectorsAsync(TDocument d } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3473,7 +3476,7 @@ public virtual Task TermvectorsAsync(TDocument d } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) @@ -3484,7 +3487,7 @@ public virtual Task TermvectorsAsync(TDocument d } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3496,7 +3499,7 @@ public virtual Task TermvectorsAsync(TDocument d } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) @@ -3507,7 +3510,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli } /// - /// Returns information and statistics about terms in the fields of a particular document. + /// Get term vector information.
Returns information and statistics about terms in the fields of a particular document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3519,7 +3522,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli } /// - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> UpdateAsync(UpdateRequest request, CancellationToken cancellationToken = default) @@ -3529,7 +3532,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> UpdateAsync(UpdateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3539,7 +3542,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -3550,7 +3553,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3562,7 +3565,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, CancellationToken cancellationToken = default) @@ -3573,7 +3576,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3585,7 +3588,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) @@ -3596,7 +3599,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3608,7 +3611,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -3619,7 +3622,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3631,7 +3634,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) @@ -3642,7 +3645,7 @@ public virtual Task> UpdateAsync - /// Updates a document with a script or partial document. + /// Update a document.
Updates a document by running a script or passing a partial document.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3654,7 +3657,7 @@ public virtual Task> UpdateAsync - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(UpdateByQueryRequest request, CancellationToken cancellationToken = default) @@ -3664,7 +3667,7 @@ public virtual Task UpdateByQueryAsync(UpdateByQueryReque } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3674,7 +3677,7 @@ public virtual Task UpdateByQueryAsync(UpdateB } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -3685,7 +3688,7 @@ public virtual Task UpdateByQueryAsync(Elastic } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -3697,7 +3700,7 @@ public virtual Task UpdateByQueryAsync(Elastic } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(CancellationToken cancellationToken = default) @@ -3708,7 +3711,7 @@ public virtual Task UpdateByQueryAsync(Cancell } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -3720,7 +3723,7 @@ public virtual Task UpdateByQueryAsync(Action< } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3730,7 +3733,7 @@ public virtual Task UpdateByQueryAsync(UpdateByQueryReque } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) @@ -3741,7 +3744,7 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El } /// - /// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
+ /// Update documents.
Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
/// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs index a06ef9773bc..8feb30d35ab 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs @@ -94,6 +94,8 @@ public AutoDateHistogramAggregationDescriptor() : base() private string? OffsetValue { get; set; } private IDictionary? ParamsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? TimeZoneValue { get; set; } /// @@ -176,10 +178,28 @@ public AutoDateHistogramAggregationDescriptor Params(Func Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public AutoDateHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public AutoDateHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Time zone ID. /// @@ -234,7 +254,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ParamsValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -266,6 +296,8 @@ public AutoDateHistogramAggregationDescriptor() : base() private string? OffsetValue { get; set; } private IDictionary? ParamsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? TimeZoneValue { get; set; } /// @@ -348,10 +380,28 @@ public AutoDateHistogramAggregationDescriptor Params(Func configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Time zone ID. /// @@ -406,7 +456,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ParamsValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregation.g.cs index 84f00150db1..fa6785cbcb3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregation.g.cs @@ -60,6 +60,8 @@ public AverageAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -105,10 +107,28 @@ public AverageAggregationDescriptor Missing(Elastic.Clients.Elasticse public AverageAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public AverageAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public AverageAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -130,7 +150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -152,6 +182,8 @@ public AverageAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -197,10 +229,28 @@ public AverageAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Server public AverageAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public AverageAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public AverageAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -222,7 +272,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregation.g.cs index bdb9fecc732..8f738d262e2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregation.g.cs @@ -64,6 +64,8 @@ public BoxplotAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. @@ -112,10 +114,28 @@ public BoxplotAggregationDescriptor Missing(Elastic.Clients.Elasticse public BoxplotAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public BoxplotAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public BoxplotAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -137,7 +157,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -159,6 +189,8 @@ public BoxplotAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. @@ -207,10 +239,28 @@ public BoxplotAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Server public BoxplotAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public BoxplotAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public BoxplotAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -232,7 +282,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs index bb58ced0e56..3174de7ee9d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs @@ -68,6 +68,8 @@ public BucketScriptAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Path to the buckets that contain one set of values to correlate. @@ -101,10 +103,28 @@ public BucketScriptAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch /// public BucketScriptAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public BucketScriptAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public BucketScriptAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -126,7 +146,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, GapPolicyValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs index c8a7730be4d..bbd0c4cd262 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs @@ -68,6 +68,8 @@ public BucketSelectorAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Path to the buckets that contain one set of values to correlate. @@ -101,10 +103,28 @@ public BucketSelectorAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsear /// public BucketSelectorAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public BucketSelectorAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public BucketSelectorAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -126,7 +146,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, GapPolicyValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregation.g.cs index 8bda81a29a0..dd5f17b3279 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregation.g.cs @@ -74,6 +74,8 @@ public CardinalityAggregationDescriptor() : base() private int? PrecisionThresholdValue { get; set; } private bool? RehashValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Mechanism by which cardinality aggregations is run. @@ -137,10 +139,28 @@ public CardinalityAggregationDescriptor Rehash(bool? rehash = true) public CardinalityAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CardinalityAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CardinalityAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -174,7 +194,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(RehashValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -198,6 +228,8 @@ public CardinalityAggregationDescriptor() : base() private int? PrecisionThresholdValue { get; set; } private bool? RehashValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Mechanism by which cardinality aggregations is run. @@ -261,10 +293,28 @@ public CardinalityAggregationDescriptor Rehash(bool? rehash = true) public CardinalityAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CardinalityAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CardinalityAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -298,7 +348,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(RehashValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs index 5ada6165df9..00995f17f70 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs @@ -85,6 +85,8 @@ public CompositeDateHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Duration? OffsetValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? TimeZoneValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } @@ -168,10 +170,28 @@ public CompositeDateHistogramAggregationDescriptor Order(Elastic.Clie /// public CompositeDateHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeDateHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeDateHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeDateHistogramAggregationDescriptor TimeZone(string? timeZone) { TimeZoneValue = timeZone; @@ -235,7 +255,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -274,6 +304,8 @@ public CompositeDateHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Duration? OffsetValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? TimeZoneValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } @@ -357,10 +389,28 @@ public CompositeDateHistogramAggregationDescriptor Order(Elastic.Clients.Elastic /// public CompositeDateHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeDateHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeDateHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeDateHistogramAggregationDescriptor TimeZone(string? timeZone) { TimeZoneValue = timeZone; @@ -424,7 +474,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs index d8ca9b08145..ea3e14f1815 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs @@ -70,6 +70,8 @@ public CompositeGeoTileGridAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private int? PrecisionValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } public CompositeGeoTileGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) @@ -134,10 +136,28 @@ public CompositeGeoTileGridAggregationDescriptor Precision(int? preci /// public CompositeGeoTileGridAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeGeoTileGridAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeGeoTileGridAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeGeoTileGridAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) { ValueTypeValue = valueType; @@ -183,7 +203,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(PrecisionValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -214,6 +244,8 @@ public CompositeGeoTileGridAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private int? PrecisionValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } public CompositeGeoTileGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) @@ -278,10 +310,28 @@ public CompositeGeoTileGridAggregationDescriptor Precision(int? precision) /// public CompositeGeoTileGridAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeGeoTileGridAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeGeoTileGridAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeGeoTileGridAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) { ValueTypeValue = valueType; @@ -327,7 +377,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(PrecisionValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs index 8a2a634ddbc..9a4fa0e5c85 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs @@ -66,6 +66,8 @@ public CompositeHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } /// @@ -124,10 +126,28 @@ public CompositeHistogramAggregationDescriptor Order(Elastic.Clients. /// public CompositeHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeHistogramAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) { ValueTypeValue = valueType; @@ -163,7 +183,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -193,6 +223,8 @@ public CompositeHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } /// @@ -251,10 +283,28 @@ public CompositeHistogramAggregationDescriptor Order(Elastic.Clients.Elasticsear /// public CompositeHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeHistogramAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) { ValueTypeValue = valueType; @@ -290,7 +340,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs index fd574e0d192..7842e188b09 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs @@ -63,6 +63,8 @@ public CompositeTermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } /// @@ -115,10 +117,28 @@ public CompositeTermsAggregationDescriptor Order(Elastic.Clients.Elas /// public CompositeTermsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeTermsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeTermsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeTermsAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) { ValueTypeValue = valueType; @@ -152,7 +172,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -181,6 +211,8 @@ public CompositeTermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } /// @@ -233,10 +265,28 @@ public CompositeTermsAggregationDescriptor Order(Elastic.Clients.Elasticsearch.S /// public CompositeTermsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public CompositeTermsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public CompositeTermsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public CompositeTermsAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) { ValueTypeValue = valueType; @@ -270,7 +320,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs index fcb319ce5dd..2b9be7e459e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs @@ -128,6 +128,8 @@ public DateHistogramAggregationDescriptor() : base() private ICollection>? OrderValue { get; set; } private IDictionary? ParamsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? TimeZoneValue { get; set; } /// @@ -282,10 +284,28 @@ public DateHistogramAggregationDescriptor Params(Func Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public DateHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DateHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Time zone used for bucketing and rounding.
Defaults to Coordinated Universal Time (UTC).
///
@@ -384,7 +404,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ParamsValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -424,6 +454,8 @@ public DateHistogramAggregationDescriptor() : base() private ICollection>? OrderValue { get; set; } private IDictionary? ParamsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? TimeZoneValue { get; set; } /// @@ -578,10 +610,28 @@ public DateHistogramAggregationDescriptor Params(Func configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Time zone used for bucketing and rounding.
Defaults to Coordinated Universal Time (UTC).
///
@@ -680,7 +730,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ParamsValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs index 7d7617ec9d7..85f5ae6e6f0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs @@ -70,6 +70,8 @@ public DiversifiedSamplerAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private int? MaxDocsPerValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private int? ShardSizeValue { get; set; } /// @@ -119,10 +121,28 @@ public DiversifiedSamplerAggregationDescriptor MaxDocsPerValue(int? m public DiversifiedSamplerAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public DiversifiedSamplerAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DiversifiedSamplerAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Limits how many top-scoring documents are collected in the sample processed on each shard. /// @@ -153,7 +173,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxDocsPerValueValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -181,6 +211,8 @@ public DiversifiedSamplerAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private int? MaxDocsPerValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private int? ShardSizeValue { get; set; } /// @@ -230,10 +262,28 @@ public DiversifiedSamplerAggregationDescriptor MaxDocsPerValue(int? maxDocsPerVa public DiversifiedSamplerAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public DiversifiedSamplerAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DiversifiedSamplerAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Limits how many top-scoring documents are collected in the sample processed on each shard. /// @@ -264,7 +314,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxDocsPerValueValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs index 7f0f113eee6..5d9d23ab7c9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs @@ -66,6 +66,8 @@ public ExtendedStatsAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private double? SigmaValue { get; set; } /// @@ -112,10 +114,28 @@ public ExtendedStatsAggregationDescriptor Missing(Elastic.Clients.Ela public ExtendedStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ExtendedStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ExtendedStatsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The number of standard deviations above/below the mean to display. /// @@ -146,7 +166,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -174,6 +204,8 @@ public ExtendedStatsAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private double? SigmaValue { get; set; } /// @@ -220,10 +252,28 @@ public ExtendedStatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch. public ExtendedStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ExtendedStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ExtendedStatsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The number of standard deviations above/below the mean to display. /// @@ -254,7 +304,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs index 914f8756c29..60dda141d46 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs @@ -63,6 +63,8 @@ public GeoBoundsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? WrapLongitudeValue { get; set; } /// @@ -103,10 +105,28 @@ public GeoBoundsAggregationDescriptor Missing(Elastic.Clients.Elastic public GeoBoundsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public GeoBoundsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public GeoBoundsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Specifies whether the bounding box should be allowed to overlap the international date line. /// @@ -131,7 +151,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -158,6 +188,8 @@ public GeoBoundsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? WrapLongitudeValue { get; set; } /// @@ -198,10 +230,28 @@ public GeoBoundsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serv public GeoBoundsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public GeoBoundsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public GeoBoundsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Specifies whether the bounding box should be allowed to overlap the international date line. /// @@ -226,7 +276,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs index 9070e16816e..be268ed90e3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs @@ -64,6 +64,8 @@ public GeoCentroidAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.GeoLocation? LocationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } public GeoCentroidAggregationDescriptor Count(long? count) { @@ -115,10 +117,28 @@ public GeoCentroidAggregationDescriptor Missing(Elastic.Clients.Elast public GeoCentroidAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public GeoCentroidAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public GeoCentroidAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -146,7 +166,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -169,6 +199,8 @@ public GeoCentroidAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.GeoLocation? LocationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } public GeoCentroidAggregationDescriptor Count(long? count) { @@ -220,10 +252,28 @@ public GeoCentroidAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Se public GeoCentroidAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public GeoCentroidAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public GeoCentroidAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,7 +301,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregation.g.cs index 1ec5a6f9c86..ef8cdc1526c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregation.g.cs @@ -108,6 +108,8 @@ public HistogramAggregationDescriptor() : base() private double? OffsetValue { get; set; } private ICollection>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Enables extending the bounds of the histogram beyond the data itself. @@ -243,10 +245,28 @@ public HistogramAggregationDescriptor Order(ICollection Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public HistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public HistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -324,7 +344,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -356,6 +386,8 @@ public HistogramAggregationDescriptor() : base() private double? OffsetValue { get; set; } private ICollection>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Enables extending the bounds of the histogram beyond the data itself. @@ -491,10 +523,28 @@ public HistogramAggregationDescriptor Order(ICollection configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -572,7 +622,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregation.g.cs index 992a2b72f85..d55e96d7c83 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregation.g.cs @@ -60,6 +60,8 @@ public MaxAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -105,10 +107,28 @@ public MaxAggregationDescriptor Missing(Elastic.Clients.Elasticsearch public MaxAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public MaxAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public MaxAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -130,7 +150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -152,6 +182,8 @@ public MaxAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -197,10 +229,28 @@ public MaxAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless public MaxAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public MaxAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public MaxAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -222,7 +272,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs index 97306594dc6..181b8a2570b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs @@ -67,6 +67,8 @@ public MedianAbsoluteDeviationAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. @@ -121,10 +123,28 @@ public MedianAbsoluteDeviationAggregationDescriptor Missing(Elastic.C public MedianAbsoluteDeviationAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public MedianAbsoluteDeviationAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public MedianAbsoluteDeviationAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -152,7 +172,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -175,6 +205,8 @@ public MedianAbsoluteDeviationAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. @@ -229,10 +261,28 @@ public MedianAbsoluteDeviationAggregationDescriptor Missing(Elastic.Clients.Elas public MedianAbsoluteDeviationAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public MedianAbsoluteDeviationAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public MedianAbsoluteDeviationAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -260,7 +310,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregation.g.cs index 097d028bc3b..4b7d60f52be 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregation.g.cs @@ -60,6 +60,8 @@ public MinAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -105,10 +107,28 @@ public MinAggregationDescriptor Missing(Elastic.Clients.Elasticsearch public MinAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public MinAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public MinAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -130,7 +150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -152,6 +182,8 @@ public MinAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -197,10 +229,28 @@ public MinAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless public MinAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public MinAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public MinAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -222,7 +272,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs index a69d8aeda42..eded597c74e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs @@ -81,6 +81,8 @@ public PercentileRanksAggregationDescriptor() : base() private Action HdrDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? TDigestValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor TDigestDescriptor { get; set; } private Action TDigestDescriptorAction { get; set; } @@ -157,10 +159,28 @@ public PercentileRanksAggregationDescriptor Missing(Elastic.Clients.E public PercentileRanksAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public PercentileRanksAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public PercentileRanksAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Sets parameters for the default TDigest algorithm used to calculate percentile ranks. /// @@ -234,7 +254,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -281,6 +311,8 @@ public PercentileRanksAggregationDescriptor() : base() private Action HdrDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? TDigestValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor TDigestDescriptor { get; set; } private Action TDigestDescriptorAction { get; set; } @@ -357,10 +389,28 @@ public PercentileRanksAggregationDescriptor Missing(Elastic.Clients.Elasticsearc public PercentileRanksAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public PercentileRanksAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public PercentileRanksAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Sets parameters for the default TDigest algorithm used to calculate percentile ranks. /// @@ -434,7 +484,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesAggregation.g.cs index 4dc92dacc75..b2ee3be00ae 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesAggregation.g.cs @@ -82,6 +82,8 @@ public PercentilesAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private ICollection? PercentsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? TDigestValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor TDigestDescriptor { get; set; } private Action TDigestDescriptorAction { get; set; } @@ -166,10 +168,28 @@ public PercentilesAggregationDescriptor Percents(ICollection? public PercentilesAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public PercentilesAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public PercentilesAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Sets parameters for the default TDigest algorithm used to calculate percentiles. /// @@ -240,7 +260,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PercentsValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -282,6 +312,8 @@ public PercentilesAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private ICollection? PercentsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? TDigestValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor TDigestDescriptor { get; set; } private Action TDigestDescriptorAction { get; set; } @@ -366,10 +398,28 @@ public PercentilesAggregationDescriptor Percents(ICollection? percents) public PercentilesAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public PercentilesAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public PercentilesAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Sets parameters for the default TDigest algorithm used to calculate percentiles. /// @@ -440,7 +490,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PercentsValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregation.g.cs index e75e924bfc2..0fc83170cbb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregation.g.cs @@ -70,6 +70,8 @@ public RangeAggregationDescriptor() : base() private Action RangesDescriptorAction { get; set; } private Action[] RangesDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The date field whose values are use to build ranges. @@ -154,10 +156,28 @@ public RangeAggregationDescriptor Ranges(params Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public RangeAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public RangeAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -210,7 +230,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RangesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -236,6 +266,8 @@ public RangeAggregationDescriptor() : base() private Action RangesDescriptorAction { get; set; } private Action[] RangesDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The date field whose values are use to build ranges. @@ -320,10 +352,28 @@ public RangeAggregationDescriptor Ranges(params Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -376,7 +426,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RangesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregation.g.cs index 4b5297eb2f6..9eb5f5a1f11 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregation.g.cs @@ -73,6 +73,8 @@ public RateAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateMode? ModeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? UnitValue { get; set; } /// @@ -128,10 +130,28 @@ public RateAggregationDescriptor Mode(Elastic.Clients.Elasticsearch.S public RateAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public RateAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public RateAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The interval used to calculate the rate.
By default, the interval of the `date_histogram` is used.
///
@@ -168,7 +188,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ModeValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -197,6 +227,8 @@ public RateAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateMode? ModeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? UnitValue { get; set; } /// @@ -252,10 +284,28 @@ public RateAggregationDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.A public RateAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public RateAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public RateAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The interval used to calculate the rate.
By default, the interval of the `date_histogram` is used.
///
@@ -292,7 +342,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ModeValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs index a580fdf699b..75d1cc8978b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs @@ -42,18 +42,52 @@ public ScriptedHeuristicDescriptor() : base() } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } public ScriptedHeuristicDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptedHeuristicDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptedHeuristicDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs index c3f87224370..01239e3e1e9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs @@ -85,23 +85,51 @@ public ScriptedMetricAggregationDescriptor() : base() } private Elastic.Clients.Elasticsearch.Serverless.Script? CombineScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor CombineScriptDescriptor { get; set; } + private Action CombineScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? InitScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor InitScriptDescriptor { get; set; } + private Action InitScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? MapScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor MapScriptDescriptor { get; set; } + private Action MapScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private IDictionary? ParamsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ReduceScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ReduceScriptDescriptor { get; set; } + private Action ReduceScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Runs once on each shard after document collection is complete.
Allows the aggregation to consolidate the state returned from each shard.
///
public ScriptedMetricAggregationDescriptor CombineScript(Elastic.Clients.Elasticsearch.Serverless.Script? combineScript) { + CombineScriptDescriptor = null; + CombineScriptDescriptorAction = null; CombineScriptValue = combineScript; return Self; } + public ScriptedMetricAggregationDescriptor CombineScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + CombineScriptValue = null; + CombineScriptDescriptorAction = null; + CombineScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor CombineScript(Action configure) + { + CombineScriptValue = null; + CombineScriptDescriptor = null; + CombineScriptDescriptorAction = configure; + return Self; + } + /// /// The field on which to run the aggregation. /// @@ -134,19 +162,55 @@ public ScriptedMetricAggregationDescriptor Field(Expression public ScriptedMetricAggregationDescriptor InitScript(Elastic.Clients.Elasticsearch.Serverless.Script? initScript) { + InitScriptDescriptor = null; + InitScriptDescriptorAction = null; InitScriptValue = initScript; return Self; } + public ScriptedMetricAggregationDescriptor InitScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + InitScriptValue = null; + InitScriptDescriptorAction = null; + InitScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor InitScript(Action configure) + { + InitScriptValue = null; + InitScriptDescriptor = null; + InitScriptDescriptorAction = configure; + return Self; + } + /// /// Run once per document collected.
If no `combine_script` is specified, the resulting state needs to be stored in the `state` object.
///
public ScriptedMetricAggregationDescriptor MapScript(Elastic.Clients.Elasticsearch.Serverless.Script? mapScript) { + MapScriptDescriptor = null; + MapScriptDescriptorAction = null; MapScriptValue = mapScript; return Self; } + public ScriptedMetricAggregationDescriptor MapScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + MapScriptValue = null; + MapScriptDescriptorAction = null; + MapScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor MapScript(Action configure) + { + MapScriptValue = null; + MapScriptDescriptor = null; + MapScriptDescriptorAction = configure; + return Self; + } + /// /// The value to apply to documents that do not have a value.
By default, documents without a value are ignored.
///
@@ -170,20 +234,66 @@ public ScriptedMetricAggregationDescriptor Params(Func public ScriptedMetricAggregationDescriptor ReduceScript(Elastic.Clients.Elasticsearch.Serverless.Script? reduceScript) { + ReduceScriptDescriptor = null; + ReduceScriptDescriptorAction = null; ReduceScriptValue = reduceScript; return Self; } + public ScriptedMetricAggregationDescriptor ReduceScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ReduceScriptValue = null; + ReduceScriptDescriptorAction = null; + ReduceScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor ReduceScript(Action configure) + { + ReduceScriptValue = null; + ReduceScriptDescriptor = null; + ReduceScriptDescriptorAction = configure; + return Self; + } + public ScriptedMetricAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptedMetricAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (CombineScriptValue is not null) + if (CombineScriptDescriptor is not null) + { + writer.WritePropertyName("combine_script"); + JsonSerializer.Serialize(writer, CombineScriptDescriptor, options); + } + else if (CombineScriptDescriptorAction is not null) + { + writer.WritePropertyName("combine_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(CombineScriptDescriptorAction), options); + } + else if (CombineScriptValue is not null) { writer.WritePropertyName("combine_script"); JsonSerializer.Serialize(writer, CombineScriptValue, options); @@ -195,13 +305,33 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FieldValue, options); } - if (InitScriptValue is not null) + if (InitScriptDescriptor is not null) + { + writer.WritePropertyName("init_script"); + JsonSerializer.Serialize(writer, InitScriptDescriptor, options); + } + else if (InitScriptDescriptorAction is not null) + { + writer.WritePropertyName("init_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(InitScriptDescriptorAction), options); + } + else if (InitScriptValue is not null) { writer.WritePropertyName("init_script"); JsonSerializer.Serialize(writer, InitScriptValue, options); } - if (MapScriptValue is not null) + if (MapScriptDescriptor is not null) + { + writer.WritePropertyName("map_script"); + JsonSerializer.Serialize(writer, MapScriptDescriptor, options); + } + else if (MapScriptDescriptorAction is not null) + { + writer.WritePropertyName("map_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(MapScriptDescriptorAction), options); + } + else if (MapScriptValue is not null) { writer.WritePropertyName("map_script"); JsonSerializer.Serialize(writer, MapScriptValue, options); @@ -219,13 +349,33 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ParamsValue, options); } - if (ReduceScriptValue is not null) + if (ReduceScriptDescriptor is not null) + { + writer.WritePropertyName("reduce_script"); + JsonSerializer.Serialize(writer, ReduceScriptDescriptor, options); + } + else if (ReduceScriptDescriptorAction is not null) + { + writer.WritePropertyName("reduce_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ReduceScriptDescriptorAction), options); + } + else if (ReduceScriptValue is not null) { writer.WritePropertyName("reduce_script"); JsonSerializer.Serialize(writer, ReduceScriptValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -244,23 +394,51 @@ public ScriptedMetricAggregationDescriptor() : base() } private Elastic.Clients.Elasticsearch.Serverless.Script? CombineScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor CombineScriptDescriptor { get; set; } + private Action CombineScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? InitScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor InitScriptDescriptor { get; set; } + private Action InitScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? MapScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor MapScriptDescriptor { get; set; } + private Action MapScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private IDictionary? ParamsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ReduceScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ReduceScriptDescriptor { get; set; } + private Action ReduceScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Runs once on each shard after document collection is complete.
Allows the aggregation to consolidate the state returned from each shard.
///
public ScriptedMetricAggregationDescriptor CombineScript(Elastic.Clients.Elasticsearch.Serverless.Script? combineScript) { + CombineScriptDescriptor = null; + CombineScriptDescriptorAction = null; CombineScriptValue = combineScript; return Self; } + public ScriptedMetricAggregationDescriptor CombineScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + CombineScriptValue = null; + CombineScriptDescriptorAction = null; + CombineScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor CombineScript(Action configure) + { + CombineScriptValue = null; + CombineScriptDescriptor = null; + CombineScriptDescriptorAction = configure; + return Self; + } + /// /// The field on which to run the aggregation. /// @@ -293,19 +471,55 @@ public ScriptedMetricAggregationDescriptor Field(Expression public ScriptedMetricAggregationDescriptor InitScript(Elastic.Clients.Elasticsearch.Serverless.Script? initScript) { + InitScriptDescriptor = null; + InitScriptDescriptorAction = null; InitScriptValue = initScript; return Self; } + public ScriptedMetricAggregationDescriptor InitScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + InitScriptValue = null; + InitScriptDescriptorAction = null; + InitScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor InitScript(Action configure) + { + InitScriptValue = null; + InitScriptDescriptor = null; + InitScriptDescriptorAction = configure; + return Self; + } + /// /// Run once per document collected.
If no `combine_script` is specified, the resulting state needs to be stored in the `state` object.
///
public ScriptedMetricAggregationDescriptor MapScript(Elastic.Clients.Elasticsearch.Serverless.Script? mapScript) { + MapScriptDescriptor = null; + MapScriptDescriptorAction = null; MapScriptValue = mapScript; return Self; } + public ScriptedMetricAggregationDescriptor MapScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + MapScriptValue = null; + MapScriptDescriptorAction = null; + MapScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor MapScript(Action configure) + { + MapScriptValue = null; + MapScriptDescriptor = null; + MapScriptDescriptorAction = configure; + return Self; + } + /// /// The value to apply to documents that do not have a value.
By default, documents without a value are ignored.
///
@@ -329,20 +543,66 @@ public ScriptedMetricAggregationDescriptor Params(Func public ScriptedMetricAggregationDescriptor ReduceScript(Elastic.Clients.Elasticsearch.Serverless.Script? reduceScript) { + ReduceScriptDescriptor = null; + ReduceScriptDescriptorAction = null; ReduceScriptValue = reduceScript; return Self; } + public ScriptedMetricAggregationDescriptor ReduceScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ReduceScriptValue = null; + ReduceScriptDescriptorAction = null; + ReduceScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor ReduceScript(Action configure) + { + ReduceScriptValue = null; + ReduceScriptDescriptor = null; + ReduceScriptDescriptorAction = configure; + return Self; + } + public ScriptedMetricAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptedMetricAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptedMetricAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (CombineScriptValue is not null) + if (CombineScriptDescriptor is not null) + { + writer.WritePropertyName("combine_script"); + JsonSerializer.Serialize(writer, CombineScriptDescriptor, options); + } + else if (CombineScriptDescriptorAction is not null) + { + writer.WritePropertyName("combine_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(CombineScriptDescriptorAction), options); + } + else if (CombineScriptValue is not null) { writer.WritePropertyName("combine_script"); JsonSerializer.Serialize(writer, CombineScriptValue, options); @@ -354,13 +614,33 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FieldValue, options); } - if (InitScriptValue is not null) + if (InitScriptDescriptor is not null) + { + writer.WritePropertyName("init_script"); + JsonSerializer.Serialize(writer, InitScriptDescriptor, options); + } + else if (InitScriptDescriptorAction is not null) + { + writer.WritePropertyName("init_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(InitScriptDescriptorAction), options); + } + else if (InitScriptValue is not null) { writer.WritePropertyName("init_script"); JsonSerializer.Serialize(writer, InitScriptValue, options); } - if (MapScriptValue is not null) + if (MapScriptDescriptor is not null) + { + writer.WritePropertyName("map_script"); + JsonSerializer.Serialize(writer, MapScriptDescriptor, options); + } + else if (MapScriptDescriptorAction is not null) + { + writer.WritePropertyName("map_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(MapScriptDescriptorAction), options); + } + else if (MapScriptValue is not null) { writer.WritePropertyName("map_script"); JsonSerializer.Serialize(writer, MapScriptValue, options); @@ -378,13 +658,33 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ParamsValue, options); } - if (ReduceScriptValue is not null) + if (ReduceScriptDescriptor is not null) + { + writer.WritePropertyName("reduce_script"); + JsonSerializer.Serialize(writer, ReduceScriptDescriptor, options); + } + else if (ReduceScriptDescriptorAction is not null) + { + writer.WritePropertyName("reduce_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ReduceScriptDescriptorAction), options); + } + else if (ReduceScriptValue is not null) { writer.WritePropertyName("reduce_script"); JsonSerializer.Serialize(writer, ReduceScriptValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregation.g.cs index abfe4490480..2f5f90a7f08 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregation.g.cs @@ -60,6 +60,8 @@ public StatsAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -105,10 +107,28 @@ public StatsAggregationDescriptor Missing(Elastic.Clients.Elasticsear public StatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public StatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public StatsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -130,7 +150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -152,6 +182,8 @@ public StatsAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -197,10 +229,28 @@ public StatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverle public StatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public StatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public StatsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -222,7 +272,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregation.g.cs index 80756f17dd4..df8ff10e4d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregation.g.cs @@ -63,6 +63,8 @@ public StringStatsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? ShowDistributionValue { get; set; } /// @@ -103,10 +105,28 @@ public StringStatsAggregationDescriptor Missing(Elastic.Clients.Elast public StringStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public StringStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public StringStatsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Shows the probability distribution for all characters. /// @@ -131,7 +151,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -158,6 +188,8 @@ public StringStatsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? ShowDistributionValue { get; set; } /// @@ -198,10 +230,28 @@ public StringStatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Se public StringStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public StringStatsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public StringStatsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Shows the probability distribution for all characters. /// @@ -226,7 +276,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregation.g.cs index c9bd6c78de1..e3d0a830165 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregation.g.cs @@ -60,6 +60,8 @@ public SumAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -105,10 +107,28 @@ public SumAggregationDescriptor Missing(Elastic.Clients.Elasticsearch public SumAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public SumAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public SumAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -130,7 +150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -152,6 +182,8 @@ public SumAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -197,10 +229,28 @@ public SumAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless public SumAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public SumAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public SumAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -222,7 +272,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); 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 9a8d543b219..528f792cd66 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 @@ -140,6 +140,8 @@ 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 Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private long? ShardMinDocCountValue { get; set; } private int? ShardSizeValue { get; set; } private bool? ShowTermDocCountErrorValue { get; set; } @@ -256,10 +258,28 @@ public TermsAggregationDescriptor Order(ICollection Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public TermsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public TermsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + 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`.
///
@@ -374,7 +394,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -434,6 +464,8 @@ 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 Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private long? ShardMinDocCountValue { get; set; } private int? ShardSizeValue { get; set; } private bool? ShowTermDocCountErrorValue { get; set; } @@ -550,10 +582,28 @@ public TermsAggregationDescriptor Order(ICollection configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + 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`.
///
@@ -668,7 +718,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TestPopulation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TestPopulation.g.cs index 6e65d3c4d9f..5e3635f1fe2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TestPopulation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TestPopulation.g.cs @@ -57,6 +57,8 @@ public TestPopulationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action> FilterDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field to aggregate. @@ -114,10 +116,28 @@ public TestPopulationDescriptor Filter(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public TestPopulationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public TestPopulationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -139,7 +159,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FilterValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -162,6 +192,8 @@ public TestPopulationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action FilterDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field to aggregate. @@ -219,10 +251,28 @@ public TestPopulationDescriptor Filter(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -244,7 +294,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FilterValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs index 681f757ff1c..179c1575afa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs @@ -150,6 +150,8 @@ public TopHitsAggregationDescriptor() : base() private Action> HighlightDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private IDictionary ScriptFieldsValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } @@ -323,10 +325,28 @@ public TopHitsAggregationDescriptor Missing(Elastic.Clients.Elasticse public TopHitsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public TopHitsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public TopHitsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Returns the result of one or more script evaluations for each hit. /// @@ -534,7 +554,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -639,6 +669,8 @@ public TopHitsAggregationDescriptor() : base() private Action HighlightDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private IDictionary ScriptFieldsValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } @@ -812,10 +844,28 @@ public TopHitsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Server public TopHitsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public TopHitsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public TopHitsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// Returns the result of one or more script evaluations for each hit. /// @@ -1023,7 +1073,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs index 78ab7c21d19..e66cc60a861 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs @@ -81,6 +81,8 @@ public TopMetricsAggregationDescriptor() : base() private Action>[] MetricsDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private int? SizeValue { get; set; } private ICollection? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } @@ -164,10 +166,28 @@ public TopMetricsAggregationDescriptor Missing(Elastic.Clients.Elasti public TopMetricsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public TopMetricsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public TopMetricsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The number of top documents from which to return metrics. /// @@ -260,7 +280,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -320,6 +350,8 @@ public TopMetricsAggregationDescriptor() : base() private Action[] MetricsDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private int? SizeValue { get; set; } private ICollection? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } @@ -403,10 +435,28 @@ public TopMetricsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Ser public TopMetricsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public TopMetricsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public TopMetricsAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The number of top documents from which to return metrics. /// @@ -499,7 +549,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregation.g.cs index e487f32cb4a..1ff4ffdfe96 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregation.g.cs @@ -60,6 +60,8 @@ public ValueCountAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -105,10 +107,28 @@ public ValueCountAggregationDescriptor Missing(Elastic.Clients.Elasti public ValueCountAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ValueCountAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ValueCountAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -130,7 +150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -152,6 +182,8 @@ public ValueCountAggregationDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field on which to run the aggregation. @@ -197,10 +229,28 @@ public ValueCountAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Ser public ValueCountAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ValueCountAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ValueCountAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -222,7 +272,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MissingValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs index 501b879e6db..585ccdd2539 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs @@ -70,6 +70,8 @@ public VariableWidthHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private int? InitialBufferValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private int? ShardSizeValue { get; set; } /// @@ -119,10 +121,28 @@ public VariableWidthHistogramAggregationDescriptor InitialBuffer(int? public VariableWidthHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public VariableWidthHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public VariableWidthHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The number of buckets that the coordinating node will request from each shard.
Defaults to `buckets * 50`.
///
@@ -153,7 +173,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(InitialBufferValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -181,6 +211,8 @@ public VariableWidthHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private int? InitialBufferValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private int? ShardSizeValue { get; set; } /// @@ -230,10 +262,28 @@ public VariableWidthHistogramAggregationDescriptor InitialBuffer(int? initialBuf public VariableWidthHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public VariableWidthHistogramAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public VariableWidthHistogramAggregationDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// The number of buckets that the coordinating node will request from each shard.
Defaults to `buckets * 50`.
///
@@ -264,7 +314,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(InitialBufferValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageValue.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageValue.g.cs index 98f99025d0c..5ecd52ebd5b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageValue.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageValue.g.cs @@ -55,6 +55,8 @@ public WeightedAverageValueDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private double? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field from which to extract the values or weights. @@ -94,10 +96,28 @@ public WeightedAverageValueDescriptor Missing(double? missing) public WeightedAverageValueDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public WeightedAverageValueDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public WeightedAverageValueDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -113,7 +133,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MissingValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -134,6 +164,8 @@ public WeightedAverageValueDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } private double? MissingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// The field from which to extract the values or weights. @@ -173,10 +205,28 @@ public WeightedAverageValueDescriptor Missing(double? missing) public WeightedAverageValueDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public WeightedAverageValueDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public WeightedAverageValueDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -192,7 +242,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MissingValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ConditionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ConditionTokenFilter.g.cs index 3b9562f678f..8f3bccf1177 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ConditionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ConditionTokenFilter.g.cs @@ -51,6 +51,8 @@ public ConditionTokenFilterDescriptor() : base() private ICollection FilterValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? VersionValue { get; set; } public ConditionTokenFilterDescriptor Filter(ICollection filter) @@ -61,10 +63,28 @@ public ConditionTokenFilterDescriptor Filter(ICollection filter) public ConditionTokenFilterDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ConditionTokenFilterDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ConditionTokenFilterDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ConditionTokenFilterDescriptor Version(string? version) { VersionValue = version; @@ -76,8 +96,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStartObject(); writer.WritePropertyName("filter"); JsonSerializer.Serialize(writer, FilterValue, options); - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("condition"); if (!string.IsNullOrEmpty(VersionValue)) @@ -89,10 +123,34 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ConditionTokenFilter IBuildableDescriptor.Build() => new() { Filter = FilterValue, - Script = ScriptValue, + Script = BuildScript(), Version = VersionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PredicateTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PredicateTokenFilter.g.cs index 5586caf0e07..e80194acd42 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PredicateTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PredicateTokenFilter.g.cs @@ -48,14 +48,34 @@ public PredicateTokenFilterDescriptor() : base() } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? VersionValue { get; set; } public PredicateTokenFilterDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public PredicateTokenFilterDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public PredicateTokenFilterDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public PredicateTokenFilterDescriptor Version(string? version) { VersionValue = version; @@ -65,8 +85,22 @@ public PredicateTokenFilterDescriptor Version(string? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("predicate_token_filter"); if (!string.IsNullOrEmpty(VersionValue)) @@ -78,9 +112,33 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + PredicateTokenFilter IBuildableDescriptor.Build() => new() { - Script = ScriptValue, + Script = BuildScript(), Version = VersionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballTokenFilter.g.cs index 148ebf8ab93..73a4eb08848 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballTokenFilter.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; public sealed partial class SnowballTokenFilter : ITokenFilter { [JsonInclude, JsonPropertyName("language")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage Language { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage? Language { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "snowball"; @@ -47,10 +47,10 @@ public SnowballTokenFilterDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage LanguageValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage? LanguageValue { get; set; } private string? VersionValue { get; set; } - public SnowballTokenFilterDescriptor Language(Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage language) + public SnowballTokenFilterDescriptor Language(Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage? language) { LanguageValue = language; return Self; @@ -65,8 +65,12 @@ public SnowballTokenFilterDescriptor Version(string? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("language"); - JsonSerializer.Serialize(writer, LanguageValue, options); + if (LanguageValue is not null) + { + writer.WritePropertyName("language"); + JsonSerializer.Serialize(writer, LanguageValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("snowball"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs index 8194630ce94..11d32512bf4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs @@ -33,4 +33,6 @@ public sealed partial class IlmIndicatorDetails public Elastic.Clients.Elasticsearch.Serverless.LifecycleOperationMode IlmStatus { get; init; } [JsonInclude, JsonPropertyName("policies")] public long Policies { get; init; } + [JsonInclude, JsonPropertyName("stagnating_indices")] + public int StagnatingIndices { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs index d231091c7fd..d2b3121a56b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs @@ -31,6 +31,8 @@ public sealed partial class ShardsAvailabilityIndicatorDetails { [JsonInclude, JsonPropertyName("creating_primaries")] public long CreatingPrimaries { get; init; } + [JsonInclude, JsonPropertyName("creating_replicas")] + public long CreatingReplicas { get; init; } [JsonInclude, JsonPropertyName("initializing_primaries")] public long InitializingPrimaries { get; init; } [JsonInclude, JsonPropertyName("initializing_replicas")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs index c5c3abd8688..1e98efc9541 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs @@ -34,5 +34,5 @@ public sealed partial class SlmIndicatorDetails [JsonInclude, JsonPropertyName("slm_status")] public Elastic.Clients.Elasticsearch.Serverless.LifecycleOperationMode SlmStatus { get; init; } [JsonInclude, JsonPropertyName("unhealthy_policies")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.SlmIndicatorUnhealthyPolicies UnhealthyPolicies { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.SlmIndicatorUnhealthyPolicies? UnhealthyPolicies { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs index e9470c32e8f..4f06a813c46 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs @@ -34,7 +34,7 @@ public sealed partial class MultiTermVectorsResult [JsonInclude, JsonPropertyName("found")] public bool? Found { get; init; } [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } + public string? Id { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("term_vectors")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs index c9d3b3ce541..db68c554542 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs @@ -53,6 +53,8 @@ public sealed partial class Hit public string? Node { get; init; } [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + [JsonInclude, JsonPropertyName("_rank")] + public int? Rank { get; init; } [JsonInclude, JsonPropertyName("_routing")] public string? Routing { get; init; } [JsonInclude, JsonPropertyName("_score")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/TermVector.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/TermVector.g.cs index 5348a67388a..46823cb9faa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/TermVector.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/TermVector.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors; public sealed partial class TermVector { [JsonInclude, JsonPropertyName("field_statistics")] - public Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FieldStatistics FieldStatistics { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FieldStatistics? FieldStatistics { get; init; } [JsonInclude, JsonPropertyName("terms")] public IReadOnlyDictionary Terms { get; init; } } \ No newline at end of file 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 index 6569028993b..d7dd96264cf 100644 --- 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 @@ -45,6 +45,8 @@ public enum QueryRuleCriteriaType Gt, [EnumMember(Value = "global")] Global, + [EnumMember(Value = "fuzzy")] + Fuzzy, [EnumMember(Value = "exact_fuzzy")] ExactFuzzy, [EnumMember(Value = "exact")] @@ -76,6 +78,8 @@ public override QueryRuleCriteriaType Read(ref Utf8JsonReader reader, Type typeT return QueryRuleCriteriaType.Gt; case "global": return QueryRuleCriteriaType.Global; + case "fuzzy": + return QueryRuleCriteriaType.Fuzzy; case "exact_fuzzy": return QueryRuleCriteriaType.ExactFuzzy; case "exact": @@ -115,6 +119,9 @@ public override void Write(Utf8JsonWriter writer, QueryRuleCriteriaType value, J case QueryRuleCriteriaType.Global: writer.WriteStringValue("global"); return; + case QueryRuleCriteriaType.Fuzzy: + writer.WriteStringValue("fuzzy"); + return; case QueryRuleCriteriaType.ExactFuzzy: writer.WriteStringValue("exact_fuzzy"); return; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs index b89b9827c87..7f845dcd99b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs @@ -45,6 +45,12 @@ public sealed partial class HitsEvent [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + /// + /// Set to `true` for events in a timespan-constrained sequence that do not meet a given condition. + /// + [JsonInclude, JsonPropertyName("missing")] + public bool? Missing { get; init; } + /// /// Original JSON body passed for the event at index time. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs index 9f291a12fad..0f224ca4b16 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs @@ -39,5 +39,5 @@ public sealed partial class HitsSequence /// Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax. /// [JsonInclude, JsonPropertyName("join_keys")] - public IReadOnlyCollection JoinKeys { get; init; } + public IReadOnlyCollection? JoinKeys { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoDistanceSort.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoDistanceSort.g.cs index 59b99d81636..a691a7efc98 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoDistanceSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoDistanceSort.g.cs @@ -57,6 +57,12 @@ public override GeoDistanceSort Read(ref Utf8JsonReader reader, Type typeToConve continue; } + if (property == "nested") + { + variant.Nested = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "order") { variant.Order = JsonSerializer.Deserialize(ref reader, options); @@ -111,6 +117,12 @@ public override void Write(Utf8JsonWriter writer, GeoDistanceSort value, JsonSer JsonSerializer.Serialize(writer, value.Mode, options); } + if (value.Nested is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, value.Nested, options); + } + if (value.Order is not null) { writer.WritePropertyName("order"); @@ -135,6 +147,7 @@ public sealed partial class GeoDistanceSort public bool? IgnoreUnmapped { get; set; } public ICollection Location { get; set; } public Elastic.Clients.Elasticsearch.Serverless.SortMode? Mode { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? Nested { get; set; } public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } public Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? Unit { get; set; } @@ -154,6 +167,9 @@ public GeoDistanceSortDescriptor() : base() private bool? IgnoreUnmappedValue { get; set; } private ICollection LocationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortMode? ModeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? NestedValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor NestedDescriptor { get; set; } + private Action> NestedDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? UnitValue { get; set; } @@ -199,6 +215,30 @@ public GeoDistanceSortDescriptor Mode(Elastic.Clients.Elasticsearch.S return Self; } + public GeoDistanceSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) + { + NestedDescriptor = null; + NestedDescriptorAction = null; + NestedValue = nested; + return Self; + } + + public GeoDistanceSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) + { + NestedValue = null; + NestedDescriptorAction = null; + NestedDescriptor = descriptor; + return Self; + } + + public GeoDistanceSortDescriptor Nested(Action> configure) + { + NestedValue = null; + NestedDescriptor = null; + NestedDescriptorAction = configure; + return Self; + } + public GeoDistanceSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) { OrderValue = order; @@ -239,6 +279,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ModeValue, options); } + if (NestedDescriptor is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, NestedDescriptor, options); + } + else if (NestedDescriptorAction is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor(NestedDescriptorAction), options); + } + else if (NestedValue is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, NestedValue, options); + } + if (OrderValue is not null) { writer.WritePropertyName("order"); @@ -268,6 +324,9 @@ public GeoDistanceSortDescriptor() : base() private bool? IgnoreUnmappedValue { get; set; } private ICollection LocationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortMode? ModeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? NestedValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor NestedDescriptor { get; set; } + private Action NestedDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? UnitValue { get; set; } @@ -313,6 +372,30 @@ public GeoDistanceSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.S return Self; } + public GeoDistanceSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) + { + NestedDescriptor = null; + NestedDescriptorAction = null; + NestedValue = nested; + return Self; + } + + public GeoDistanceSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) + { + NestedValue = null; + NestedDescriptorAction = null; + NestedDescriptor = descriptor; + return Self; + } + + public GeoDistanceSortDescriptor Nested(Action configure) + { + NestedValue = null; + NestedDescriptor = null; + NestedDescriptorAction = configure; + return Self; + } + public GeoDistanceSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) { OrderValue = order; @@ -353,6 +436,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ModeValue, options); } + if (NestedDescriptor is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, NestedDescriptor, options); + } + else if (NestedDescriptorAction is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor(NestedDescriptorAction), options); + } + else if (NestedValue is not null) + { + writer.WritePropertyName("nested"); + JsonSerializer.Serialize(writer, NestedValue, options); + } + if (OrderValue is not null) { writer.WritePropertyName("order"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs index 81d181d15f1..477c9728129 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs @@ -60,7 +60,7 @@ public sealed partial class DataStream public IReadOnlyCollection Indices { get; init; } /// - /// Contains the configuration for the data lifecycle management of this data stream. + /// Contains the configuration for the data stream lifecycle of this data stream. /// [JsonInclude, JsonPropertyName("lifecycle")] public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index 8639e54aa77..5aff2514d66 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -28,7 +28,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; /// -/// Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. +/// Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. /// public sealed partial class DataStreamLifecycle { @@ -39,7 +39,7 @@ public sealed partial class DataStreamLifecycle } /// -/// Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. +/// Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. /// public sealed partial class DataStreamLifecycleDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index 22f9fa2aea1..a14bd60d03e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -28,7 +28,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; /// -/// Data lifecycle with rollover can be used to display the configuration including the default rollover conditions,
if asked.
+/// Data stream lifecycle with rollover can be used to display the configuration including the default rollover conditions,
if asked.
///
public sealed partial class DataStreamLifecycleWithRollover { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs index 3feee352c0d..1038b45d26d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs @@ -41,7 +41,7 @@ public sealed partial class IndexState public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Defaults { get; set; } /// - /// Data lifecycle applicable if this is a data stream. + /// Data stream lifecycle applicable if this is a data stream. /// [JsonInclude, JsonPropertyName("lifecycle")] public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } @@ -114,7 +114,7 @@ public IndexStateDescriptor Defaults(Action - /// Data lifecycle applicable if this is a data stream. + /// Data stream lifecycle applicable if this is a data stream. /// public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) { @@ -334,7 +334,7 @@ public IndexStateDescriptor Defaults(Action - /// Data lifecycle applicable if this is a data stream. + /// Data stream lifecycle applicable if this is a data stream. /// public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs index 2d9c9bf0262..67895c00710 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs @@ -48,28 +48,92 @@ public SettingsSimilarityScriptedDescriptor() : base() } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? WeightScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor WeightScriptDescriptor { get; set; } + private Action WeightScriptDescriptorAction { get; set; } public SettingsSimilarityScriptedDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public SettingsSimilarityScriptedDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public SettingsSimilarityScriptedDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public SettingsSimilarityScriptedDescriptor WeightScript(Elastic.Clients.Elasticsearch.Serverless.Script? weightScript) { + WeightScriptDescriptor = null; + WeightScriptDescriptorAction = null; WeightScriptValue = weightScript; return Self; } + public SettingsSimilarityScriptedDescriptor WeightScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + WeightScriptValue = null; + WeightScriptDescriptorAction = null; + WeightScriptDescriptor = descriptor; + return Self; + } + + public SettingsSimilarityScriptedDescriptor WeightScript(Action configure) + { + WeightScriptValue = null; + WeightScriptDescriptor = null; + WeightScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("scripted"); - if (WeightScriptValue is not null) + if (WeightScriptDescriptor is not null) + { + writer.WritePropertyName("weight_script"); + JsonSerializer.Serialize(writer, WeightScriptDescriptor, options); + } + else if (WeightScriptDescriptorAction is not null) + { + writer.WritePropertyName("weight_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(WeightScriptDescriptorAction), options); + } + else if (WeightScriptValue is not null) { writer.WritePropertyName("weight_script"); JsonSerializer.Serialize(writer, WeightScriptValue, options); @@ -78,9 +142,57 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildWeightScript() + { + if (WeightScriptValue is not null) + { + return WeightScriptValue; + } + + if ((object)WeightScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (WeightScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(WeightScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + SettingsSimilarityScripted IBuildableDescriptor.Build() => new() { - Script = ScriptValue, - WeightScript = WeightScriptValue + Script = BuildScript(), + WeightScript = BuildWeightScript() }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineScript.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineScript.g.cs deleted file mode 100644 index 6bcf2f8e669..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineScript.g.cs +++ /dev/null @@ -1,124 +0,0 @@ -// 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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class InlineScript -{ - /// - /// Specifies the language the script is written in. - /// - [JsonInclude, JsonPropertyName("lang")] - public Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage? Language { get; set; } - [JsonInclude, JsonPropertyName("options")] - public IDictionary? Options { get; set; } - - /// - /// Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compile time.
- ///
- [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// The script source. - /// - [JsonInclude, JsonPropertyName("source")] - public string Source { get; set; } -} - -public sealed partial class InlineScriptDescriptor : SerializableDescriptor -{ - internal InlineScriptDescriptor(Action configure) => configure.Invoke(this); - - public InlineScriptDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage? LanguageValue { get; set; } - private IDictionary? OptionsValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private string SourceValue { get; set; } - - /// - /// Specifies the language the script is written in. - /// - public InlineScriptDescriptor Language(Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage? language) - { - LanguageValue = language; - return Self; - } - - public InlineScriptDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compile time.
- ///
- public InlineScriptDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// The script source. - /// - public InlineScriptDescriptor Source(string source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LanguageValue is not null) - { - writer.WritePropertyName("lang"); - JsonSerializer.Serialize(writer, LanguageValue, options); - } - - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - writer.WritePropertyName("source"); - writer.WriteStringValue(SourceValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs index daddecf4818..e98b842846d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs @@ -39,5 +39,5 @@ public sealed partial class TrainedModelSizeStats /// The amount of memory required to load the model in bytes. /// [JsonInclude, JsonPropertyName("required_native_memory_bytes")] - public int RequiredNativeMemoryBytes { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize RequiredNativeMemoryBytes { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs index cf9a3a88fa4..dd3bfc1bb69 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs @@ -93,6 +93,8 @@ public ByteNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public ByteNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ByteNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ByteNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ByteNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ByteNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public ByteNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public ByteNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ByteNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ByteNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs index 2c8847c4cce..4e08844157d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs @@ -29,10 +29,12 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; public sealed partial class DenseVectorIndexOptions { + [JsonInclude, JsonPropertyName("confidence_interval")] + public float? ConfidenceInterval { get; set; } [JsonInclude, JsonPropertyName("ef_construction")] - public int EfConstruction { get; set; } + public int? EfConstruction { get; set; } [JsonInclude, JsonPropertyName("m")] - public int m { get; set; } + public int? m { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type { get; set; } } @@ -45,17 +47,24 @@ public DenseVectorIndexOptionsDescriptor() : base() { } - private int EfConstructionValue { get; set; } - private int mValue { get; set; } + private float? ConfidenceIntervalValue { get; set; } + private int? EfConstructionValue { get; set; } + private int? mValue { get; set; } private string TypeValue { get; set; } - public DenseVectorIndexOptionsDescriptor EfConstruction(int efConstruction) + public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInterval) + { + ConfidenceIntervalValue = confidenceInterval; + return Self; + } + + public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) { EfConstructionValue = efConstruction; return Self; } - public DenseVectorIndexOptionsDescriptor m(int m) + public DenseVectorIndexOptionsDescriptor m(int? m) { mValue = m; return Self; @@ -70,10 +79,24 @@ public DenseVectorIndexOptionsDescriptor Type(string type) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("ef_construction"); - writer.WriteNumberValue(EfConstructionValue); - writer.WritePropertyName("m"); - writer.WriteNumberValue(mValue); + if (ConfidenceIntervalValue.HasValue) + { + writer.WritePropertyName("confidence_interval"); + writer.WriteNumberValue(ConfidenceIntervalValue.Value); + } + + if (EfConstructionValue.HasValue) + { + writer.WritePropertyName("ef_construction"); + writer.WriteNumberValue(EfConstructionValue.Value); + } + + if (mValue.HasValue) + { + writer.WritePropertyName("m"); + writer.WriteNumberValue(mValue.Value); + } + writer.WritePropertyName("type"); writer.WriteStringValue(TypeValue); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs index 049755248e9..a5795bfabec 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs @@ -93,6 +93,8 @@ public DoubleNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public DoubleNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public DoubleNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DoubleNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DoubleNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DoubleNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public DoubleNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public DoubleNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DoubleNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DoubleNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs index d3f0ac36bf4..b6fa6fe83da 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs @@ -136,6 +136,8 @@ public DynamicPropertyDescriptor() : base() private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } private string? SimilarityValue { get; set; } @@ -338,10 +340,28 @@ public DynamicPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public DynamicPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DynamicPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DynamicPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) { SearchAnalyzerValue = searchAnalyzer; @@ -535,7 +555,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -606,6 +636,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o return null; } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DynamicProperty IBuildableDescriptor.Build() => new() { Analyzer = AnalyzerValue, @@ -632,7 +686,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PositionIncrementGap = PositionIncrementGapValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, @@ -677,6 +731,8 @@ public DynamicPropertyDescriptor() : base() private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } private string? SimilarityValue { get; set; } @@ -879,10 +935,28 @@ public DynamicPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DynamicPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) { SearchAnalyzerValue = searchAnalyzer; @@ -1076,7 +1150,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -1147,6 +1231,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o return null; } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DynamicProperty IBuildableDescriptor.Build() => new() { Analyzer = AnalyzerValue, @@ -1173,7 +1281,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PositionIncrementGap = PositionIncrementGapValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs index dcc01e463be..d97b66a8771 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs @@ -93,6 +93,8 @@ public FloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public FloatNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public FloatNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public FloatNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public FloatNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + FloatNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public FloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public FloatNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public FloatNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + FloatNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs index 830c46a4954..69b6673ac80 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs @@ -90,6 +90,8 @@ public GeoPointPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -198,10 +200,28 @@ public GeoPointPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public GeoPointPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public GeoPointPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public GeoPointPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -289,7 +309,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -312,6 +342,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + GeoPointProperty IBuildableDescriptor.Build() => new() { CopyTo = CopyToValue, @@ -326,7 +380,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -353,6 +407,8 @@ public GeoPointPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -461,10 +517,28 @@ public GeoPointPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public GeoPointPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -552,7 +626,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -575,6 +659,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + GeoPointProperty IBuildableDescriptor.Build() => new() { CopyTo = CopyToValue, @@ -589,7 +697,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs index e0c91cabb43..d2c643c0d44 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs @@ -93,6 +93,8 @@ public HalfFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public HalfFloatNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public HalfFloatNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public HalfFloatNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public HalfFloatNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + HalfFloatNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public HalfFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public HalfFloatNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public HalfFloatNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + HalfFloatNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs index f4b0c2bc36c..58badb3ef94 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs @@ -93,6 +93,8 @@ public IntegerNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public IntegerNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public IntegerNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public IntegerNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public IntegerNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + IntegerNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public IntegerNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public IntegerNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public IntegerNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + IntegerNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpProperty.g.cs index f73237663f4..3aff1e512f7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpProperty.g.cs @@ -90,6 +90,8 @@ public IpPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -198,10 +200,28 @@ public IpPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public IpPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public IpPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public IpPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -289,7 +309,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -312,6 +342,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + IpProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -326,7 +380,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -353,6 +407,8 @@ public IpPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -461,10 +517,28 @@ public IpPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public IpPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -552,7 +626,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -575,6 +659,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + IpProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -589,7 +697,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/KeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/KeywordProperty.g.cs index 5a4f3ac5a80..d88b2d44a09 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/KeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/KeywordProperty.g.cs @@ -101,6 +101,8 @@ public KeywordPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? SplitQueriesOnWhitespaceValue { get; set; } private bool? StoreValue { get; set; } @@ -228,10 +230,28 @@ public KeywordPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public KeywordPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public KeywordPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public KeywordPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -343,7 +363,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -372,6 +402,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + KeywordProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -389,7 +443,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue @@ -420,6 +474,8 @@ public KeywordPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? SplitQueriesOnWhitespaceValue { get; set; } private bool? StoreValue { get; set; } @@ -547,10 +603,28 @@ public KeywordPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public KeywordPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -662,7 +736,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -691,6 +775,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + KeywordProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -708,7 +816,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongNumberProperty.g.cs index 11bad1da35c..a4cde2ed5c8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongNumberProperty.g.cs @@ -93,6 +93,8 @@ public LongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public LongNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public LongNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public LongNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public LongNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + LongNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public LongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public LongNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public LongNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + LongNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeField.g.cs index 73af424a6f3..f84ef9258c8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeField.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeField.g.cs @@ -87,6 +87,8 @@ public RuntimeFieldDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? InputFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.IndexName? TargetIndexValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType TypeValue { get; set; } @@ -171,10 +173,28 @@ public RuntimeFieldDescriptor InputField(Expression public RuntimeFieldDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public RuntimeFieldDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public RuntimeFieldDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// For type `lookup` /// @@ -266,7 +286,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, InputFieldValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -305,6 +335,8 @@ public RuntimeFieldDescriptor() : base() private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? InputFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.IndexName? TargetIndexValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType TypeValue { get; set; } @@ -389,10 +421,28 @@ public RuntimeFieldDescriptor InputField(Expression public RuntimeFieldDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public RuntimeFieldDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public RuntimeFieldDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + /// /// For type `lookup` /// @@ -484,7 +534,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, InputFieldValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs index e058dd3ff91..43e47f7619f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs @@ -96,6 +96,8 @@ public ScaledFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private double? ScalingFactorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -216,10 +218,28 @@ public ScaledFloatNumberPropertyDescriptor ScalingFactor(double? scal public ScaledFloatNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScaledFloatNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScaledFloatNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ScaledFloatNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -319,7 +339,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(ScalingFactorValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -342,6 +372,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ScaledFloatNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -358,7 +412,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -387,6 +441,8 @@ public ScaledFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private double? ScalingFactorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -507,10 +563,28 @@ public ScaledFloatNumberPropertyDescriptor ScalingFactor(double? scalingFactor) public ScaledFloatNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScaledFloatNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScaledFloatNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ScaledFloatNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -610,7 +684,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(ScalingFactorValue.Value); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -633,6 +717,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ScaledFloatNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -649,7 +757,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShortNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShortNumberProperty.g.cs index de15f8cc2bd..0bf79ea07cb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShortNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShortNumberProperty.g.cs @@ -93,6 +93,8 @@ public ShortNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public ShortNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ShortNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ShortNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ShortNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ShortNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public ShortNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public ShortNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ShortNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + ShortNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs index 0d15d5f9328..b89ef34b213 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs @@ -93,6 +93,8 @@ public UnsignedLongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -207,10 +209,28 @@ public UnsignedLongNumberPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public UnsignedLongNumberPropertyDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public UnsignedLongNumberPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public UnsignedLongNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -304,7 +324,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -327,6 +357,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + UnsignedLongNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -342,7 +396,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; @@ -370,6 +424,8 @@ public UnsignedLongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } @@ -484,10 +540,28 @@ public UnsignedLongNumberPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public UnsignedLongNumberPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; @@ -581,7 +655,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (ScriptValue is not null) + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) { writer.WritePropertyName("script"); JsonSerializer.Serialize(writer, ScriptValue, options); @@ -604,6 +688,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.Serverless.Script? BuildScript() + { + if (ScriptValue is not null) + { + return ScriptValue; + } + + if ((object)ScriptDescriptor is IBuildableDescriptor buildable) + { + return buildable.Build(); + } + + if (ScriptDescriptorAction is not null) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + UnsignedLongNumberProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -619,7 +727,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, - Script = ScriptValue, + Script = BuildScript(), Similarity = SimilarityValue, Store = StoreValue }; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldLookup.g.cs new file mode 100644 index 00000000000..b6cdd8f2c6a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldLookup.g.cs @@ -0,0 +1,243 @@ +// 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 System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; + +public sealed partial class FieldLookup +{ + /// + /// `id` of the document. + /// + [JsonInclude, JsonPropertyName("id")] + public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } + + /// + /// Index from which to retrieve the document. + /// + [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } + + /// + /// Name of the field. + /// + [JsonInclude, JsonPropertyName("path")] + public Elastic.Clients.Elasticsearch.Serverless.Field? Path { get; set; } + + /// + /// Custom routing value. + /// + [JsonInclude, JsonPropertyName("routing")] + public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } +} + +public sealed partial class FieldLookupDescriptor : SerializableDescriptor> +{ + internal FieldLookupDescriptor(Action> configure) => configure.Invoke(this); + + public FieldLookupDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } + + /// + /// `id` of the document. + /// + public FieldLookupDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + IdValue = id; + return Self; + } + + /// + /// Index from which to retrieve the document. + /// + public FieldLookupDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) + { + IndexValue = index; + return Self; + } + + /// + /// Name of the field. + /// + public FieldLookupDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) + { + PathValue = path; + return Self; + } + + /// + /// Name of the field. + /// + public FieldLookupDescriptor Path(Expression> path) + { + PathValue = path; + return Self; + } + + /// + /// Name of the field. + /// + public FieldLookupDescriptor Path(Expression> path) + { + PathValue = path; + return Self; + } + + /// + /// Custom routing value. + /// + public FieldLookupDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) + { + RoutingValue = routing; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + if (IndexValue is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + if (PathValue is not null) + { + writer.WritePropertyName("path"); + JsonSerializer.Serialize(writer, PathValue, options); + } + + if (RoutingValue is not null) + { + writer.WritePropertyName("routing"); + JsonSerializer.Serialize(writer, RoutingValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class FieldLookupDescriptor : SerializableDescriptor +{ + internal FieldLookupDescriptor(Action configure) => configure.Invoke(this); + + public FieldLookupDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } + + /// + /// `id` of the document. + /// + public FieldLookupDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + IdValue = id; + return Self; + } + + /// + /// Index from which to retrieve the document. + /// + public FieldLookupDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) + { + IndexValue = index; + return Self; + } + + /// + /// Name of the field. + /// + public FieldLookupDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) + { + PathValue = path; + return Self; + } + + /// + /// Name of the field. + /// + public FieldLookupDescriptor Path(Expression> path) + { + PathValue = path; + return Self; + } + + /// + /// Name of the field. + /// + public FieldLookupDescriptor Path(Expression> path) + { + PathValue = path; + return Self; + } + + /// + /// Custom routing value. + /// + public FieldLookupDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) + { + RoutingValue = routing; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + if (IndexValue is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + if (PathValue is not null) + { + writer.WritePropertyName("path"); + JsonSerializer.Serialize(writer, PathValue, options); + } + + if (RoutingValue is not null) + { + writer.WritePropertyName("routing"); + JsonSerializer.Serialize(writer, RoutingValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs new file mode 100644 index 00000000000..0244fbb6bd9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs @@ -0,0 +1,227 @@ +// 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 System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; + +public sealed partial class GeoShapeFieldQuery +{ + /// + /// Query using an indexed shape retrieved from the the specified document and path. + /// + [JsonInclude, JsonPropertyName("indexed_shape")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? IndexedShape { get; set; } + + /// + /// Spatial relation operator used to search a geo field. + /// + [JsonInclude, JsonPropertyName("relation")] + public Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? Relation { get; set; } + [JsonInclude, JsonPropertyName("shape")] + public object? Shape { get; set; } +} + +public sealed partial class GeoShapeFieldQueryDescriptor : SerializableDescriptor> +{ + internal GeoShapeFieldQueryDescriptor(Action> configure) => configure.Invoke(this); + + public GeoShapeFieldQueryDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? IndexedShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor IndexedShapeDescriptor { get; set; } + private Action> IndexedShapeDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? RelationValue { get; set; } + private object? ShapeValue { get; set; } + + /// + /// Query using an indexed shape retrieved from the the specified document and path. + /// + public GeoShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? indexedShape) + { + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = null; + IndexedShapeValue = indexedShape; + return Self; + } + + public GeoShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor descriptor) + { + IndexedShapeValue = null; + IndexedShapeDescriptorAction = null; + IndexedShapeDescriptor = descriptor; + return Self; + } + + public GeoShapeFieldQueryDescriptor IndexedShape(Action> configure) + { + IndexedShapeValue = null; + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = configure; + return Self; + } + + /// + /// Spatial relation operator used to search a geo field. + /// + public GeoShapeFieldQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? relation) + { + RelationValue = relation; + return Self; + } + + public GeoShapeFieldQueryDescriptor Shape(object? shape) + { + ShapeValue = shape; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IndexedShapeDescriptor is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeDescriptor, options); + } + else if (IndexedShapeDescriptorAction is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor(IndexedShapeDescriptorAction), options); + } + else if (IndexedShapeValue is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeValue, options); + } + + if (RelationValue is not null) + { + writer.WritePropertyName("relation"); + JsonSerializer.Serialize(writer, RelationValue, options); + } + + if (ShapeValue is not null) + { + writer.WritePropertyName("shape"); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class GeoShapeFieldQueryDescriptor : SerializableDescriptor +{ + internal GeoShapeFieldQueryDescriptor(Action configure) => configure.Invoke(this); + + public GeoShapeFieldQueryDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? IndexedShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor IndexedShapeDescriptor { get; set; } + private Action IndexedShapeDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? RelationValue { get; set; } + private object? ShapeValue { get; set; } + + /// + /// Query using an indexed shape retrieved from the the specified document and path. + /// + public GeoShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? indexedShape) + { + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = null; + IndexedShapeValue = indexedShape; + return Self; + } + + public GeoShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor descriptor) + { + IndexedShapeValue = null; + IndexedShapeDescriptorAction = null; + IndexedShapeDescriptor = descriptor; + return Self; + } + + public GeoShapeFieldQueryDescriptor IndexedShape(Action configure) + { + IndexedShapeValue = null; + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = configure; + return Self; + } + + /// + /// Spatial relation operator used to search a geo field. + /// + public GeoShapeFieldQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? relation) + { + RelationValue = relation; + return Self; + } + + public GeoShapeFieldQueryDescriptor Shape(object? shape) + { + ShapeValue = shape; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IndexedShapeDescriptor is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeDescriptor, options); + } + else if (IndexedShapeDescriptorAction is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor(IndexedShapeDescriptorAction), options); + } + else if (IndexedShapeValue is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeValue, options); + } + + if (RelationValue is not null) + { + writer.WritePropertyName("relation"); + JsonSerializer.Serialize(writer, RelationValue, options); + } + + if (ShapeValue is not null) + { + writer.WritePropertyName("shape"); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs new file mode 100644 index 00000000000..8b50187502b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs @@ -0,0 +1,351 @@ +// 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 System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; + +internal sealed partial class GeoShapeQueryConverter : JsonConverter +{ + public override GeoShapeQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException("Unexpected JSON detected."); + var variant = new GeoShapeQuery(); + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType == JsonTokenType.PropertyName) + { + var property = reader.GetString(); + if (property == "boost") + { + variant.Boost = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "ignore_unmapped") + { + variant.IgnoreUnmapped = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "_name") + { + variant.QueryName = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + variant.Field = property; + reader.Read(); + variant.Shape = JsonSerializer.Deserialize(ref reader, options); + } + } + + return variant; + } + + public override void Write(Utf8JsonWriter writer, GeoShapeQuery value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (value.Field is not null && value.Shape is not null) + { + if (!options.TryGetClientSettings(out var settings)) + { + ThrowHelper.ThrowJsonExceptionForMissingSettings(); + } + + var propertyName = settings.Inferrer.Field(value.Field); + writer.WritePropertyName(propertyName); + JsonSerializer.Serialize(writer, value.Shape, options); + } + + if (value.Boost.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(value.Boost.Value); + } + + if (value.IgnoreUnmapped.HasValue) + { + writer.WritePropertyName("ignore_unmapped"); + writer.WriteBooleanValue(value.IgnoreUnmapped.Value); + } + + if (!string.IsNullOrEmpty(value.QueryName)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(value.QueryName); + } + + writer.WriteEndObject(); + } +} + +[JsonConverter(typeof(GeoShapeQueryConverter))] +public sealed partial class GeoShapeQuery +{ + /// + /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
+ ///
+ public float? Boost { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// Set to `true` to ignore an unmapped field and not match any documents for this query.
Set to `false` to throw an exception if the field is not mapped.
+ ///
+ public bool? IgnoreUnmapped { get; set; } + public string? QueryName { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQuery Shape { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(GeoShapeQuery geoShapeQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.GeoShape(geoShapeQuery); +} + +public sealed partial class GeoShapeQueryDescriptor : SerializableDescriptor> +{ + internal GeoShapeQueryDescriptor(Action> configure) => configure.Invoke(this); + + public GeoShapeQueryDescriptor() : base() + { + } + + private float? BoostValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private bool? IgnoreUnmappedValue { get; set; } + private string? QueryNameValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQuery ShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQueryDescriptor ShapeDescriptor { get; set; } + private Action> ShapeDescriptorAction { get; set; } + + /// + /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
+ ///
+ public GeoShapeQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + public GeoShapeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + public GeoShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public GeoShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// Set to `true` to ignore an unmapped field and not match any documents for this query.
Set to `false` to throw an exception if the field is not mapped.
+ ///
+ public GeoShapeQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) + { + IgnoreUnmappedValue = ignoreUnmapped; + return Self; + } + + public GeoShapeQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public GeoShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQuery shape) + { + ShapeDescriptor = null; + ShapeDescriptorAction = null; + ShapeValue = shape; + return Self; + } + + public GeoShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQueryDescriptor descriptor) + { + ShapeValue = null; + ShapeDescriptorAction = null; + ShapeDescriptor = descriptor; + return Self; + } + + public GeoShapeQueryDescriptor Shape(Action> configure) + { + ShapeValue = null; + ShapeDescriptor = null; + ShapeDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FieldValue is not null && ShapeValue is not null) + { + var propertyName = settings.Inferrer.Field(FieldValue); + writer.WritePropertyName(propertyName); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + if (IgnoreUnmappedValue.HasValue) + { + writer.WritePropertyName("ignore_unmapped"); + writer.WriteBooleanValue(IgnoreUnmappedValue.Value); + } + + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class GeoShapeQueryDescriptor : SerializableDescriptor +{ + internal GeoShapeQueryDescriptor(Action configure) => configure.Invoke(this); + + public GeoShapeQueryDescriptor() : base() + { + } + + private float? BoostValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private bool? IgnoreUnmappedValue { get; set; } + private string? QueryNameValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQuery ShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQueryDescriptor ShapeDescriptor { get; set; } + private Action ShapeDescriptorAction { get; set; } + + /// + /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
+ ///
+ public GeoShapeQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + public GeoShapeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + public GeoShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public GeoShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// Set to `true` to ignore an unmapped field and not match any documents for this query.
Set to `false` to throw an exception if the field is not mapped.
+ ///
+ public GeoShapeQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) + { + IgnoreUnmappedValue = ignoreUnmapped; + return Self; + } + + public GeoShapeQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public GeoShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQuery shape) + { + ShapeDescriptor = null; + ShapeDescriptorAction = null; + ShapeValue = shape; + return Self; + } + + public GeoShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeFieldQueryDescriptor descriptor) + { + ShapeValue = null; + ShapeDescriptorAction = null; + ShapeDescriptor = descriptor; + return Self; + } + + public GeoShapeQueryDescriptor Shape(Action configure) + { + ShapeValue = null; + ShapeDescriptor = null; + ShapeDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FieldValue is not null && ShapeValue is not null) + { + var propertyName = settings.Inferrer.Field(FieldValue); + writer.WritePropertyName(propertyName); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + if (IgnoreUnmappedValue.HasValue) + { + writer.WritePropertyName("ignore_unmapped"); + writer.WriteBooleanValue(IgnoreUnmappedValue.Value); + } + + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFilter.g.cs index 832e6d0083d..787ad340e5d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFilter.g.cs @@ -254,6 +254,7 @@ private IntervalsFilterDescriptor Set(object variant, string variantN public IntervalsFilterDescriptor Overlapping(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "overlapping"); public IntervalsFilterDescriptor Overlapping(Action> configure) => Set(configure, "overlapping"); public IntervalsFilterDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) => Set(script, "script"); + public IntervalsFilterDescriptor Script(Action configure) => Set(configure, "script"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -323,6 +324,7 @@ private IntervalsFilterDescriptor Set(object variant, string variantName) public IntervalsFilterDescriptor Overlapping(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "overlapping"); public IntervalsFilterDescriptor Overlapping(Action configure) => Set(configure, "overlapping"); public IntervalsFilterDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) => Set(script, "script"); + public IntervalsFilterDescriptor Script(Action configure) => Set(configure, "script"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Query.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Query.g.cs index 3bd9a18aaf2..792467a2dea 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Query.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Query.g.cs @@ -62,6 +62,7 @@ internal Query(string variantName, object variant) public static Query Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FuzzyQuery fuzzyQuery) => new Query("fuzzy", fuzzyQuery); public static Query GeoBoundingBox(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoBoundingBoxQuery geoBoundingBoxQuery) => new Query("geo_bounding_box", geoBoundingBoxQuery); public static Query GeoDistance(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceQuery geoDistanceQuery) => new Query("geo_distance", geoDistanceQuery); + public static Query GeoShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeQuery geoShapeQuery) => new Query("geo_shape", geoShapeQuery); public static Query HasChild(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasChildQuery hasChildQuery) => new Query("has_child", hasChildQuery); public static Query HasParent(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasParentQuery hasParentQuery) => new Query("has_parent", hasParentQuery); public static Query Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => new Query("ids", idsQuery); @@ -92,6 +93,7 @@ internal Query(string variantName, object variant) public static Query Script(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptQuery scriptQuery) => new Query("script", scriptQuery); public static Query ScriptScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreQuery scriptScoreQuery) => new Query("script_score", scriptScoreQuery); public static Query Semantic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SemanticQuery semanticQuery) => new Query("semantic", semanticQuery); + public static Query Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeQuery shapeQuery) => new Query("shape", shapeQuery); public static Query SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => new Query("simple_query_string", simpleQueryStringQuery); public static Query SpanContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery spanContainingQuery) => new Query("span_containing", spanContainingQuery); public static Query SpanFieldMasking(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery spanFieldMaskingQuery) => new Query("span_field_masking", spanFieldMaskingQuery); @@ -226,6 +228,13 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe continue; } + if (propertyName == "geo_shape") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "has_child") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -415,6 +424,13 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe continue; } + if (propertyName == "shape") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "simple_query_string") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -589,6 +605,9 @@ public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOpt case "geo_distance": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceQuery)value.Variant, options); break; + case "geo_shape": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeQuery)value.Variant, options); + break; case "has_child": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasChildQuery)value.Variant, options); break; @@ -670,6 +689,9 @@ public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOpt case "semantic": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SemanticQuery)value.Variant, options); break; + case "shape": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeQuery)value.Variant, options); + break; case "simple_query_string": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery)value.Variant, options); break; @@ -785,6 +807,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor GeoBoundingBox(Action> configure) => Set(configure, "geo_bounding_box"); public QueryDescriptor GeoDistance(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceQuery geoDistanceQuery) => Set(geoDistanceQuery, "geo_distance"); public QueryDescriptor GeoDistance(Action> configure) => Set(configure, "geo_distance"); + public QueryDescriptor GeoShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeQuery geoShapeQuery) => Set(geoShapeQuery, "geo_shape"); + public QueryDescriptor GeoShape(Action> configure) => Set(configure, "geo_shape"); public QueryDescriptor HasChild(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasChildQuery hasChildQuery) => Set(hasChildQuery, "has_child"); public QueryDescriptor HasChild(Action> configure) => Set(configure, "has_child"); public QueryDescriptor HasParent(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasParentQuery hasParentQuery) => Set(hasParentQuery, "has_parent"); @@ -840,6 +864,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor ScriptScore(Action> configure) => Set(configure, "script_score"); public QueryDescriptor Semantic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SemanticQuery semanticQuery) => Set(semanticQuery, "semantic"); public QueryDescriptor Semantic(Action configure) => Set(configure, "semantic"); + public QueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeQuery shapeQuery) => Set(shapeQuery, "shape"); + public QueryDescriptor Shape(Action> configure) => Set(configure, "shape"); public QueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); public QueryDescriptor SimpleQueryString(Action> configure) => Set(configure, "simple_query_string"); public QueryDescriptor SpanContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery spanContainingQuery) => Set(spanContainingQuery, "span_containing"); @@ -951,6 +977,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor GeoBoundingBox(Action configure) => Set(configure, "geo_bounding_box"); public QueryDescriptor GeoDistance(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceQuery geoDistanceQuery) => Set(geoDistanceQuery, "geo_distance"); public QueryDescriptor GeoDistance(Action configure) => Set(configure, "geo_distance"); + public QueryDescriptor GeoShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoShapeQuery geoShapeQuery) => Set(geoShapeQuery, "geo_shape"); + public QueryDescriptor GeoShape(Action configure) => Set(configure, "geo_shape"); public QueryDescriptor HasChild(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasChildQuery hasChildQuery) => Set(hasChildQuery, "has_child"); public QueryDescriptor HasChild(Action configure) => Set(configure, "has_child"); public QueryDescriptor HasParent(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasParentQuery hasParentQuery) => Set(hasParentQuery, "has_parent"); @@ -1006,6 +1034,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor ScriptScore(Action configure) => Set(configure, "script_score"); public QueryDescriptor Semantic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SemanticQuery semanticQuery) => Set(semanticQuery, "semantic"); public QueryDescriptor Semantic(Action configure) => Set(configure, "semantic"); + public QueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeQuery shapeQuery) => Set(shapeQuery, "shape"); + public QueryDescriptor Shape(Action configure) => Set(configure, "shape"); public QueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); public QueryDescriptor SimpleQueryString(Action configure) => Set(configure, "simple_query_string"); public QueryDescriptor SpanContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery spanContainingQuery) => Set(spanContainingQuery, "span_containing"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptQuery.g.cs index e83c0d2be7e..d9b31e24d9f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptQuery.g.cs @@ -57,6 +57,8 @@ public ScriptQueryDescriptor() : base() private float? BoostValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
@@ -78,10 +80,28 @@ public ScriptQueryDescriptor QueryName(string? queryName) ///
public ScriptQueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptQueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptQueryDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -97,8 +117,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(QueryNameValue); } - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs index f1c18e81446..100864d7323 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs @@ -47,21 +47,55 @@ public ScriptScoreFunctionDescriptor() : base() } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// A script that computes a score. /// public ScriptScoreFunctionDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptScoreFunctionDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptScoreFunctionDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs index d772e7320a1..8472a5ef3d2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs @@ -73,6 +73,8 @@ public ScriptScoreQueryDescriptor() : base() private Action> QueryDescriptorAction { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
@@ -130,10 +132,28 @@ public ScriptScoreQueryDescriptor QueryName(string? queryName) ///
public ScriptScoreQueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptScoreQueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptScoreQueryDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -171,8 +191,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(QueryNameValue); } - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WriteEndObject(); } } @@ -192,6 +226,8 @@ public ScriptScoreQueryDescriptor() : base() private Action QueryDescriptorAction { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } /// /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
@@ -249,10 +285,28 @@ public ScriptScoreQueryDescriptor QueryName(string? queryName) ///
public ScriptScoreQueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptScoreQueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptScoreQueryDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -290,8 +344,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(QueryNameValue); } - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs new file mode 100644 index 00000000000..137e4a1d15b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs @@ -0,0 +1,237 @@ +// 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 System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; + +public sealed partial class ShapeFieldQuery +{ + /// + /// Queries using a pre-indexed shape. + /// + [JsonInclude, JsonPropertyName("indexed_shape")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? IndexedShape { get; set; } + + /// + /// Spatial relation between the query shape and the document shape. + /// + [JsonInclude, JsonPropertyName("relation")] + public Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? Relation { get; set; } + + /// + /// Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) format. + /// + [JsonInclude, JsonPropertyName("shape")] + public object? Shape { get; set; } +} + +public sealed partial class ShapeFieldQueryDescriptor : SerializableDescriptor> +{ + internal ShapeFieldQueryDescriptor(Action> configure) => configure.Invoke(this); + + public ShapeFieldQueryDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? IndexedShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor IndexedShapeDescriptor { get; set; } + private Action> IndexedShapeDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? RelationValue { get; set; } + private object? ShapeValue { get; set; } + + /// + /// Queries using a pre-indexed shape. + /// + public ShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? indexedShape) + { + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = null; + IndexedShapeValue = indexedShape; + return Self; + } + + public ShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor descriptor) + { + IndexedShapeValue = null; + IndexedShapeDescriptorAction = null; + IndexedShapeDescriptor = descriptor; + return Self; + } + + public ShapeFieldQueryDescriptor IndexedShape(Action> configure) + { + IndexedShapeValue = null; + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = configure; + return Self; + } + + /// + /// Spatial relation between the query shape and the document shape. + /// + public ShapeFieldQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? relation) + { + RelationValue = relation; + return Self; + } + + /// + /// Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) format. + /// + public ShapeFieldQueryDescriptor Shape(object? shape) + { + ShapeValue = shape; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IndexedShapeDescriptor is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeDescriptor, options); + } + else if (IndexedShapeDescriptorAction is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor(IndexedShapeDescriptorAction), options); + } + else if (IndexedShapeValue is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeValue, options); + } + + if (RelationValue is not null) + { + writer.WritePropertyName("relation"); + JsonSerializer.Serialize(writer, RelationValue, options); + } + + if (ShapeValue is not null) + { + writer.WritePropertyName("shape"); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class ShapeFieldQueryDescriptor : SerializableDescriptor +{ + internal ShapeFieldQueryDescriptor(Action configure) => configure.Invoke(this); + + public ShapeFieldQueryDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? IndexedShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor IndexedShapeDescriptor { get; set; } + private Action IndexedShapeDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? RelationValue { get; set; } + private object? ShapeValue { get; set; } + + /// + /// Queries using a pre-indexed shape. + /// + public ShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookup? indexedShape) + { + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = null; + IndexedShapeValue = indexedShape; + return Self; + } + + public ShapeFieldQueryDescriptor IndexedShape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor descriptor) + { + IndexedShapeValue = null; + IndexedShapeDescriptorAction = null; + IndexedShapeDescriptor = descriptor; + return Self; + } + + public ShapeFieldQueryDescriptor IndexedShape(Action configure) + { + IndexedShapeValue = null; + IndexedShapeDescriptor = null; + IndexedShapeDescriptorAction = configure; + return Self; + } + + /// + /// Spatial relation between the query shape and the document shape. + /// + public ShapeFieldQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? relation) + { + RelationValue = relation; + return Self; + } + + /// + /// Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) format. + /// + public ShapeFieldQueryDescriptor Shape(object? shape) + { + ShapeValue = shape; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IndexedShapeDescriptor is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeDescriptor, options); + } + else if (IndexedShapeDescriptorAction is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldLookupDescriptor(IndexedShapeDescriptorAction), options); + } + else if (IndexedShapeValue is not null) + { + writer.WritePropertyName("indexed_shape"); + JsonSerializer.Serialize(writer, IndexedShapeValue, options); + } + + if (RelationValue is not null) + { + writer.WritePropertyName("relation"); + JsonSerializer.Serialize(writer, RelationValue, options); + } + + if (ShapeValue is not null) + { + writer.WritePropertyName("shape"); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeQuery.g.cs new file mode 100644 index 00000000000..ba54bb706e2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeQuery.g.cs @@ -0,0 +1,351 @@ +// 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 System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; + +internal sealed partial class ShapeQueryConverter : JsonConverter +{ + public override ShapeQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException("Unexpected JSON detected."); + var variant = new ShapeQuery(); + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType == JsonTokenType.PropertyName) + { + var property = reader.GetString(); + if (property == "boost") + { + variant.Boost = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "ignore_unmapped") + { + variant.IgnoreUnmapped = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "_name") + { + variant.QueryName = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + variant.Field = property; + reader.Read(); + variant.Shape = JsonSerializer.Deserialize(ref reader, options); + } + } + + return variant; + } + + public override void Write(Utf8JsonWriter writer, ShapeQuery value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (value.Field is not null && value.Shape is not null) + { + if (!options.TryGetClientSettings(out var settings)) + { + ThrowHelper.ThrowJsonExceptionForMissingSettings(); + } + + var propertyName = settings.Inferrer.Field(value.Field); + writer.WritePropertyName(propertyName); + JsonSerializer.Serialize(writer, value.Shape, options); + } + + if (value.Boost.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(value.Boost.Value); + } + + if (value.IgnoreUnmapped.HasValue) + { + writer.WritePropertyName("ignore_unmapped"); + writer.WriteBooleanValue(value.IgnoreUnmapped.Value); + } + + if (!string.IsNullOrEmpty(value.QueryName)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(value.QueryName); + } + + writer.WriteEndObject(); + } +} + +[JsonConverter(typeof(ShapeQueryConverter))] +public sealed partial class ShapeQuery +{ + /// + /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
+ ///
+ public float? Boost { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// When set to `true` the query ignores an unmapped field and will not match any documents. + /// + public bool? IgnoreUnmapped { get; set; } + public string? QueryName { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQuery Shape { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(ShapeQuery shapeQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Shape(shapeQuery); +} + +public sealed partial class ShapeQueryDescriptor : SerializableDescriptor> +{ + internal ShapeQueryDescriptor(Action> configure) => configure.Invoke(this); + + public ShapeQueryDescriptor() : base() + { + } + + private float? BoostValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private bool? IgnoreUnmappedValue { get; set; } + private string? QueryNameValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQuery ShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQueryDescriptor ShapeDescriptor { get; set; } + private Action> ShapeDescriptorAction { get; set; } + + /// + /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
+ ///
+ public ShapeQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + public ShapeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + public ShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public ShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// When set to `true` the query ignores an unmapped field and will not match any documents. + /// + public ShapeQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) + { + IgnoreUnmappedValue = ignoreUnmapped; + return Self; + } + + public ShapeQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public ShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQuery shape) + { + ShapeDescriptor = null; + ShapeDescriptorAction = null; + ShapeValue = shape; + return Self; + } + + public ShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQueryDescriptor descriptor) + { + ShapeValue = null; + ShapeDescriptorAction = null; + ShapeDescriptor = descriptor; + return Self; + } + + public ShapeQueryDescriptor Shape(Action> configure) + { + ShapeValue = null; + ShapeDescriptor = null; + ShapeDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FieldValue is not null && ShapeValue is not null) + { + var propertyName = settings.Inferrer.Field(FieldValue); + writer.WritePropertyName(propertyName); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + if (IgnoreUnmappedValue.HasValue) + { + writer.WritePropertyName("ignore_unmapped"); + writer.WriteBooleanValue(IgnoreUnmappedValue.Value); + } + + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class ShapeQueryDescriptor : SerializableDescriptor +{ + internal ShapeQueryDescriptor(Action configure) => configure.Invoke(this); + + public ShapeQueryDescriptor() : base() + { + } + + private float? BoostValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private bool? IgnoreUnmappedValue { get; set; } + private string? QueryNameValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQuery ShapeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQueryDescriptor ShapeDescriptor { get; set; } + private Action ShapeDescriptorAction { get; set; } + + /// + /// Floating point number used to decrease or increase the relevance scores of the query.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
+ ///
+ public ShapeQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + public ShapeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + public ShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public ShapeQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// When set to `true` the query ignores an unmapped field and will not match any documents. + /// + public ShapeQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) + { + IgnoreUnmappedValue = ignoreUnmapped; + return Self; + } + + public ShapeQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public ShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQuery shape) + { + ShapeDescriptor = null; + ShapeDescriptorAction = null; + ShapeValue = shape; + return Self; + } + + public ShapeQueryDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ShapeFieldQueryDescriptor descriptor) + { + ShapeValue = null; + ShapeDescriptorAction = null; + ShapeDescriptor = descriptor; + return Self; + } + + public ShapeQueryDescriptor Shape(Action configure) + { + ShapeValue = null; + ShapeDescriptor = null; + ShapeDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FieldValue is not null && ShapeValue is not null) + { + var propertyName = settings.Inferrer.Field(FieldValue); + writer.WritePropertyName(propertyName); + JsonSerializer.Serialize(writer, ShapeValue, options); + } + + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + if (IgnoreUnmappedValue.HasValue) + { + writer.WritePropertyName("ignore_unmapped"); + writer.WriteBooleanValue(IgnoreUnmappedValue.Value); + } + + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsSetQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsSetQuery.g.cs index a3a130e59e6..4671f6f7bbe 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsSetQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsSetQuery.g.cs @@ -165,6 +165,8 @@ public TermsSetQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? MinimumShouldMatchFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? MinimumShouldMatchScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor MinimumShouldMatchScriptDescriptor { get; set; } + private Action MinimumShouldMatchScriptDescriptorAction { get; set; } private string? QueryNameValue { get; set; } private ICollection TermsValue { get; set; } @@ -227,10 +229,28 @@ public TermsSetQueryDescriptor MinimumShouldMatchField(Expression public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clients.Elasticsearch.Serverless.Script? minimumShouldMatchScript) { + MinimumShouldMatchScriptDescriptor = null; + MinimumShouldMatchScriptDescriptorAction = null; MinimumShouldMatchScriptValue = minimumShouldMatchScript; return Self; } + public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + MinimumShouldMatchScriptValue = null; + MinimumShouldMatchScriptDescriptorAction = null; + MinimumShouldMatchScriptDescriptor = descriptor; + return Self; + } + + public TermsSetQueryDescriptor MinimumShouldMatchScript(Action configure) + { + MinimumShouldMatchScriptValue = null; + MinimumShouldMatchScriptDescriptor = null; + MinimumShouldMatchScriptDescriptorAction = configure; + return Self; + } + public TermsSetQueryDescriptor QueryName(string? queryName) { QueryNameValue = queryName; @@ -265,7 +285,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MinimumShouldMatchFieldValue, options); } - if (MinimumShouldMatchScriptValue is not null) + if (MinimumShouldMatchScriptDescriptor is not null) + { + writer.WritePropertyName("minimum_should_match_script"); + JsonSerializer.Serialize(writer, MinimumShouldMatchScriptDescriptor, options); + } + else if (MinimumShouldMatchScriptDescriptorAction is not null) + { + writer.WritePropertyName("minimum_should_match_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(MinimumShouldMatchScriptDescriptorAction), options); + } + else if (MinimumShouldMatchScriptValue is not null) { writer.WritePropertyName("minimum_should_match_script"); JsonSerializer.Serialize(writer, MinimumShouldMatchScriptValue, options); @@ -296,6 +326,8 @@ public TermsSetQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? MinimumShouldMatchFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? MinimumShouldMatchScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor MinimumShouldMatchScriptDescriptor { get; set; } + private Action MinimumShouldMatchScriptDescriptorAction { get; set; } private string? QueryNameValue { get; set; } private ICollection TermsValue { get; set; } @@ -358,10 +390,28 @@ public TermsSetQueryDescriptor MinimumShouldMatchField(Expression public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clients.Elasticsearch.Serverless.Script? minimumShouldMatchScript) { + MinimumShouldMatchScriptDescriptor = null; + MinimumShouldMatchScriptDescriptorAction = null; MinimumShouldMatchScriptValue = minimumShouldMatchScript; return Self; } + public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + MinimumShouldMatchScriptValue = null; + MinimumShouldMatchScriptDescriptorAction = null; + MinimumShouldMatchScriptDescriptor = descriptor; + return Self; + } + + public TermsSetQueryDescriptor MinimumShouldMatchScript(Action configure) + { + MinimumShouldMatchScriptValue = null; + MinimumShouldMatchScriptDescriptor = null; + MinimumShouldMatchScriptDescriptorAction = configure; + return Self; + } + public TermsSetQueryDescriptor QueryName(string? queryName) { QueryNameValue = queryName; @@ -396,7 +446,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MinimumShouldMatchFieldValue, options); } - if (MinimumShouldMatchScriptValue is not null) + if (MinimumShouldMatchScriptDescriptor is not null) + { + writer.WritePropertyName("minimum_should_match_script"); + JsonSerializer.Serialize(writer, MinimumShouldMatchScriptDescriptor, options); + } + else if (MinimumShouldMatchScriptDescriptorAction is not null) + { + writer.WritePropertyName("minimum_should_match_script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(MinimumShouldMatchScriptDescriptorAction), options); + } + else if (MinimumShouldMatchScriptValue is not null) { writer.WritePropertyName("minimum_should_match_script"); JsonSerializer.Serialize(writer, MinimumShouldMatchScriptValue, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs index 4a3f9bb2911..658e7c9f3b6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs @@ -47,7 +47,7 @@ public override UntypedDecayFunction Read(ref Utf8JsonReader reader, Type typeTo variant.Field = property; reader.Read(); - variant.Placement = JsonSerializer.Deserialize(ref reader, options); + variant.Placement = JsonSerializer.Deserialize>(ref reader, options); } } @@ -88,7 +88,7 @@ public sealed partial class UntypedDecayFunction /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. /// public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueMode { get; set; } - public object Placement { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement Placement { get; set; } } public sealed partial class UntypedDecayFunctionDescriptor : SerializableDescriptor> @@ -101,7 +101,7 @@ public UntypedDecayFunctionDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private object PlacementValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } public UntypedDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) { @@ -130,7 +130,7 @@ public UntypedDecayFunctionDescriptor MultiValueMode(Elastic.Clients. return Self; } - public UntypedDecayFunctionDescriptor Placement(object placement) + public UntypedDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) { PlacementValue = placement; return Self; @@ -166,7 +166,7 @@ public UntypedDecayFunctionDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private object PlacementValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } public UntypedDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) { @@ -195,7 +195,7 @@ public UntypedDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsear return Self; } - public UntypedDecayFunctionDescriptor Placement(object placement) + public UntypedDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) { PlacementValue = placement; return Self; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs index 1c9411c76c5..9101bf5a97b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs @@ -32,7 +32,10 @@ public sealed partial class QueryRule [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; set; } [JsonInclude, JsonPropertyName("criteria")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteria))] public ICollection Criteria { get; set; } + [JsonInclude, JsonPropertyName("priority")] + public int? Priority { get; set; } [JsonInclude, JsonPropertyName("rule_id")] public Elastic.Clients.Elasticsearch.Serverless.Id RuleId { get; set; } [JsonInclude, JsonPropertyName("type")] @@ -54,6 +57,7 @@ public QueryRuleDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor CriteriaDescriptor { get; set; } private Action CriteriaDescriptorAction { get; set; } private Action[] CriteriaDescriptorActions { get; set; } + private int? PriorityValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Id RuleIdValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType TypeValue { get; set; } @@ -117,6 +121,12 @@ public QueryRuleDescriptor Criteria(params Action(CriteriaValue, writer, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); } writer.WritePropertyName("rule_id"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs index 68e6094d2f5..ce2d09b44ed 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs @@ -33,7 +33,7 @@ public sealed partial class QueryRulesetListItem /// A map of criteria type to the number of rules of that type /// [JsonInclude, JsonPropertyName("rule_criteria_types_counts")] - public IReadOnlyDictionary RuleCriteriaTypesCounts { get; init; } + public IReadOnlyDictionary RuleCriteriaTypesCounts { get; init; } /// /// Ruleset unique identifier diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs index be630e319aa..e1d53d7a1a2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs @@ -38,8 +38,8 @@ public sealed partial class RrfRank /// /// Size of the individual result sets per query /// - [JsonInclude, JsonPropertyName("window_size")] - public long? WindowSize { get; set; } + [JsonInclude, JsonPropertyName("rank_window_size")] + public long? RankWindowSize { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Rank(RrfRank rrfRank) => Elastic.Clients.Elasticsearch.Serverless.Rank.Rrf(rrfRank); } @@ -53,7 +53,7 @@ public RrfRankDescriptor() : base() } private long? RankConstantValue { get; set; } - private long? WindowSizeValue { get; set; } + private long? RankWindowSizeValue { get; set; } /// /// How much influence documents in individual result sets per query have over the final ranked result set @@ -67,9 +67,9 @@ public RrfRankDescriptor RankConstant(long? rankConstant) /// /// Size of the individual result sets per query /// - public RrfRankDescriptor WindowSize(long? windowSize) + public RrfRankDescriptor RankWindowSize(long? rankWindowSize) { - WindowSizeValue = windowSize; + RankWindowSizeValue = rankWindowSize; return Self; } @@ -82,10 +82,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(RankConstantValue.Value); } - if (WindowSizeValue.HasValue) + if (RankWindowSizeValue.HasValue) { - writer.WritePropertyName("window_size"); - writer.WriteNumberValue(WindowSizeValue.Value); + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs index e23c9fb8c98..b380ed67fbd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs @@ -17,26 +17,136 @@ #nullable restore -using Elastic.Clients.Elasticsearch.Serverless.Core; using Elastic.Clients.Elasticsearch.Serverless.Fluent; using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; 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; -public sealed partial class Script : Union +public sealed partial class Script { - public Script(Elastic.Clients.Elasticsearch.Serverless.InlineScript Inline) : base(Inline) + /// + /// The `id` for a stored script. + /// + [JsonInclude, JsonPropertyName("id")] + public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } + + /// + /// Specifies the language the script is written in. + /// + [JsonInclude, JsonPropertyName("lang")] + public Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage? Lang { get; set; } + [JsonInclude, JsonPropertyName("options")] + public IDictionary? Options { get; set; } + + /// + /// Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compile time.
+ ///
+ [JsonInclude, JsonPropertyName("params")] + public IDictionary? Params { get; set; } + + /// + /// The script source. + /// + [JsonInclude, JsonPropertyName("source")] + public string? Source { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter(Script script) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter.Script(script); +} + +public sealed partial class ScriptDescriptor : SerializableDescriptor +{ + internal ScriptDescriptor(Action configure) => configure.Invoke(this); + + public ScriptDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage? LangValue { get; set; } + private IDictionary? OptionsValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private string? SourceValue { get; set; } + + /// + /// The `id` for a stored script. + /// + public ScriptDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) + { + IdValue = id; + return Self; + } + + /// + /// Specifies the language the script is written in. + /// + public ScriptDescriptor Lang(Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage? lang) { + LangValue = lang; + return Self; } - public Script(Elastic.Clients.Elasticsearch.Serverless.StoredScriptId Stored) : base(Stored) + public ScriptDescriptor Options(Func, FluentDictionary> selector) { + OptionsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compile time.
+ ///
+ public ScriptDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// The script source. + /// + public ScriptDescriptor Source(string? source) + { + SourceValue = source; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IdValue is not null) + { + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + } + + if (LangValue is not null) + { + writer.WritePropertyName("lang"); + JsonSerializer.Serialize(writer, LangValue, options); + } + + if (OptionsValue is not null) + { + writer.WritePropertyName("options"); + JsonSerializer.Serialize(writer, OptionsValue, options); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (!string.IsNullOrEmpty(SourceValue)) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(SourceValue); + } + + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptField.g.cs index 35020ff8d2a..8f8f4f1b8c8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptField.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptField.g.cs @@ -45,6 +45,8 @@ public ScriptFieldDescriptor() : base() private bool? IgnoreFailureValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } public ScriptFieldDescriptor IgnoreFailure(bool? ignoreFailure = true) { @@ -54,10 +56,28 @@ public ScriptFieldDescriptor IgnoreFailure(bool? ignoreFailure = true) public ScriptFieldDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptFieldDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptFieldDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -67,8 +87,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreFailureValue.Value); } - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptSort.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptSort.g.cs index b1cade3a24f..eb5d5f942cf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptSort.g.cs @@ -57,6 +57,8 @@ public ScriptSortDescriptor() : base() private Action> NestedDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.ScriptSortType? TypeValue { get; set; } public ScriptSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) @@ -97,10 +99,28 @@ public ScriptSortDescriptor Order(Elastic.Clients.Elasticsearch.Serve public ScriptSortDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptSortDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptSortDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ScriptSortDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.ScriptSortType? type) { TypeValue = type; @@ -138,8 +158,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (TypeValue is not null) { writer.WritePropertyName("type"); @@ -164,6 +198,8 @@ public ScriptSortDescriptor() : base() private Action NestedDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Serverless.ScriptSortType? TypeValue { get; set; } public ScriptSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) @@ -204,10 +240,28 @@ public ScriptSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortO public ScriptSortDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script script) { + ScriptDescriptor = null; + ScriptDescriptorAction = null; ScriptValue = script; return Self; } + public ScriptSortDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public ScriptSortDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public ScriptSortDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.ScriptSortType? type) { TypeValue = type; @@ -245,8 +299,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OrderValue, options); } - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); + if (ScriptDescriptor is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptDescriptor, options); + } + else if (ScriptDescriptorAction is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(ScriptDescriptorAction), options); + } + else + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (TypeValue is not null) { writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScriptId.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScriptId.g.cs deleted file mode 100644 index 80b95412999..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScriptId.g.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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 System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class StoredScriptId -{ - /// - /// The `id` for a stored script. - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - - /// - /// Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compile time.
- ///
- [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } -} - -public sealed partial class StoredScriptIdDescriptor : SerializableDescriptor -{ - internal StoredScriptIdDescriptor(Action configure) => configure.Invoke(this); - - public StoredScriptIdDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private IDictionary? ParamsValue { get; set; } - - /// - /// The `id` for a stored script. - /// - public StoredScriptIdDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compile time.
- ///
- public StoredScriptIdDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformProgress.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformProgress.g.cs index 096b4c77899..f66f3ef24da 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformProgress.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformProgress.g.cs @@ -34,9 +34,9 @@ public sealed partial class TransformProgress [JsonInclude, JsonPropertyName("docs_processed")] public long DocsProcessed { get; init; } [JsonInclude, JsonPropertyName("docs_remaining")] - public long DocsRemaining { get; init; } + public long? DocsRemaining { get; init; } [JsonInclude, JsonPropertyName("percent_complete")] - public double PercentComplete { get; init; } + public double? PercentComplete { get; init; } [JsonInclude, JsonPropertyName("total_docs")] - public long TotalDocs { get; init; } + public long? TotalDocs { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs index 7af3b4d42ba..4a9e679db13 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs @@ -43,8 +43,7 @@ public BulkUpdateOperationDescriptor() { } private Script _script; private Union _source; - private Action _inlineScriptAction; - private Action _storedScriptIdAction; + private Action _scriptAction; protected override string Operation => "update"; @@ -64,26 +63,16 @@ public BulkUpdateOperationDescriptor IdFrom(TDocume public BulkUpdateOperationDescriptor RetriesOnConflict(int? retriesOnConflict) => Assign(retriesOnConflict, (a, v) => a._retriesOnConflict = v); - public BulkUpdateOperationDescriptor Script(Action configure) + public BulkUpdateOperationDescriptor Script(Action configure) { _script = null; - _storedScriptIdAction = null; - return Assign(configure, (a, v) => a._inlineScriptAction = v); - } - - public BulkUpdateOperationDescriptor Script(Action configure) - { - _script = null; - _inlineScriptAction = null; - - return Assign(configure, (a, v) => a._storedScriptIdAction = v); + return Assign(configure, (a, v) => a._scriptAction = v); } public BulkUpdateOperationDescriptor Script(Script script) { - _inlineScriptAction = null; - _storedScriptIdAction = null; + _scriptAction = null; return Assign(script, (a, v) => a._script = v); } @@ -98,7 +87,7 @@ public BulkUpdateOperationDescriptor Source(Union @@ -153,15 +142,10 @@ protected override void Serialize(Stream stream, IElasticsearchClientSettings se private void WriteBody(IElasticsearchClientSettings settings, Utf8JsonWriter writer, JsonSerializerOptions options) { - if (_inlineScriptAction is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, new InlineScriptDescriptor(_inlineScriptAction), options); - } - else if (_storedScriptIdAction is not null) + if (_scriptAction is not null) { writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, new StoredScriptIdDescriptor(_storedScriptIdAction), options); + JsonSerializer.Serialize(writer, new ScriptDescriptor(_scriptAction), options); } if (_document is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Scripting/InlineScript.cs b/src/Elastic.Clients.Elasticsearch.Shared/Types/Scripting/InlineScript.cs deleted file mode 100644 index 228e5c1dbc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Shared/Types/Scripting/InlineScript.cs +++ /dev/null @@ -1,111 +0,0 @@ -// 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. - -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else -using Elastic.Clients.Elasticsearch.Serialization; -#endif - -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else -namespace Elastic.Clients.Elasticsearch; -#endif - -public sealed partial class InlineScript : ISelfTwoWaySerializable -{ - // This type is ISelfTwoWaySerializable because it potentially uses the source serializer for params serialisation - - public InlineScript(string source) => Source = source; - - public InlineScript() { } - - void ISelfTwoWaySerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - - if (Language is not null) - { - writer.WritePropertyName("lang"); - JsonSerializer.Serialize(writer, Language, options); - } - - if (Options is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, Options, options); - } - - writer.WritePropertyName("source"); - writer.WriteStringValue(Source); - - if (Params is not null) - { - writer.WritePropertyName("params"); - SourceSerialization.SerializeParams(Params, writer, settings); - } - - writer.WriteEndObject(); - } - - void ISelfTwoWaySerializable.Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - if (reader.ValueTextEquals("lang")) - { - reader.Read(); - var value = reader.GetString(); - if (value is not null) - { - Language = value; - } - - continue; - } - - if (reader.ValueTextEquals("options")) - { - var value = JsonSerializer.Deserialize>(ref reader, options); - if (value is not null) - { - Options = value; - } - - continue; - } - - if (reader.ValueTextEquals("source")) - { - reader.Read(); - var value = reader.GetString(); - if (value is not null) - { - Source = value; - } - - continue; - } - - if (reader.ValueTextEquals("params")) - { - var value = SourceSerialization.DeserializeParams>(ref reader, settings); - if (value is not null) - { - Params = value; - } - - continue; - } - } - } - } -} diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Scripting/Script.cs b/src/Elastic.Clients.Elasticsearch.Shared/Types/Scripting/Script.cs deleted file mode 100644 index 11a839b1c69..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Shared/Types/Scripting/Script.cs +++ /dev/null @@ -1,77 +0,0 @@ -// 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. - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; - -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else -namespace Elastic.Clients.Elasticsearch; -#endif - -[JsonConverter(typeof(ScriptConverter))] -public partial class Script -{ -} - -internal sealed class ScriptConverter : JsonConverter